James Hawkins : msi: Pad the month and day to two digits.
Module: wine Branch: master Commit: 837588c6a393e3606fff0c238d8b1b17c8a46d80 URL: http://source.winehq.org/git/wine.git/?a=commit;h=837588c6a393e3606fff0c238d... Author: James Hawkins <truiken(a)gmail.com> Date: Sun Jan 6 12:23:38 2008 -0700 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 535f070..5b940c6 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 e4727b5..bd86f73 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); }
participants (1)
-
Alexandre Julliard