From 837588c6a393e3606fff0c238d8b1b17c8a46d80 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Sun, 6 Jan 2008 12:23:38 -0700 Subject: [PATCH] msi: Pad the month and day to two digits. --- dlls/msi/action.c | 2 +- dlls/msi/tests/install.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 535f070a16a..5b940c6957c 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -3978,7 +3978,7 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package) {'P','r','o','d','u','c','t','V','e','r','s','i','o','n',0}; SYSTEMTIME systime; - static const WCHAR date_fmt[] = {'%','i','%','i','%','i',0}; + static const WCHAR date_fmt[] = {'%','i','%','0','2','i','%','0','2','i',0}; LPWSTR upgrade_code; WCHAR szDate[9]; diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index e4727b53b32..bd86f73ad0a 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -1922,7 +1922,7 @@ static void get_date_str(LPSTR date) { SYSTEMTIME systime; - static const char date_fmt[] = "%d%d%d"; + static const char date_fmt[] = "%d%02d%02d"; GetLocalTime(&systime); sprintf(date, date_fmt, systime.wYear, systime.wMonth, systime.wDay); } -- 2.11.4.GIT