https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fec16ab0c05c765bf6ca60...
commit fec16ab0c05c765bf6ca600af96c07895719bd91 Author: Amine Khaldi amine.khaldi@reactos.org AuthorDate: Fri Oct 20 18:40:15 2017 +0100
[MSI] Apply Wine commit fdac39f by Hans Leidekker: Pass correct length to GetDateFormatW. CORE-13902 --- dll/win32/msi/package.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/win32/msi/package.c b/dll/win32/msi/package.c index e2c383499c..3e0ae717f0 100644 --- a/dll/win32/msi/package.c +++ b/dll/win32/msi/package.c @@ -2289,7 +2289,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) @@ -2304,7 +2304,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)