Hans Leidekker : msi: Pass correct length to GetDateFormatW.
Alexandre Julliard
julliard at winehq.org
Tue Sep 19 15:47:05 CDT 2017
Module: wine
Branch: master
Commit: fdac39f697e049ead215b164bfe6953269ffa7be
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fdac39f697e049ead215b164bfe6953269ffa7be
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Sep 19 19:37:48 2017 +0200
msi: Pass correct length to GetDateFormatW.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msi/package.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index 63377a0..18466e1 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -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)
More information about the wine-cvs
mailing list