msi: Pass correct length to GetDateFormatW.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e1e668d41f
commit
fdac39f697
|
@ -2282,7 +2282,7 @@ static MSIRECORD *msi_get_property_row( MSIDATABASE *db, LPCWSTR name )
|
|||
if (!length)
|
||||
return NULL;
|
||||
buffer = msi_alloc(length * sizeof(WCHAR));
|
||||
GetDateFormatW(LOCALE_USER_DEFAULT, DATE_SHORTDATE, NULL, NULL, buffer, sizeof(WCHAR));
|
||||
GetDateFormatW(LOCALE_USER_DEFAULT, DATE_SHORTDATE, NULL, NULL, buffer, length);
|
||||
|
||||
row = MSI_CreateRecord(1);
|
||||
if (!row)
|
||||
|
@ -2297,7 +2297,7 @@ static MSIRECORD *msi_get_property_row( MSIDATABASE *db, LPCWSTR name )
|
|||
if (!length)
|
||||
return NULL;
|
||||
buffer = msi_alloc(length * sizeof(WCHAR));
|
||||
GetTimeFormatW(LOCALE_USER_DEFAULT, TIME_NOTIMEMARKER, NULL, NULL, buffer, sizeof(WCHAR));
|
||||
GetTimeFormatW(LOCALE_USER_DEFAULT, TIME_NOTIMEMARKER, NULL, NULL, buffer, length);
|
||||
|
||||
row = MSI_CreateRecord(1);
|
||||
if (!row)
|
||||
|
|
Loading…
Reference in New Issue