Huw Davies : msi: Correctly size packagecode as it's an unsquashed guid.

Alexandre Julliard julliard at winehq.org
Tue Nov 29 16:01:37 CST 2016


Module: wine
Branch: master
Commit: 5ac02423b0e748e22a9db9683da4e3a114829cc4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5ac02423b0e748e22a9db9683da4e3a114829cc4

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Nov 28 16:29:58 2016 +0000

msi: Correctly size packagecode as it's an unsquashed guid.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msi/msi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 518281d..892c756 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -1108,7 +1108,7 @@ static UINT MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute,
     MSIINSTALLCONTEXT context = MSIINSTALLCONTEXT_USERUNMANAGED;
     UINT r = ERROR_UNKNOWN_PROPERTY;
     HKEY prodkey, userdata, source;
-    WCHAR *val = NULL, squashed_pc[SQUASHED_GUID_SIZE], packagecode[SQUASHED_GUID_SIZE];
+    WCHAR *val = NULL, squashed_pc[SQUASHED_GUID_SIZE], packagecode[GUID_SIZE];
     BOOL badconfig = FALSE;
     LONG res;
     DWORD type = REG_NONE;




More information about the wine-cvs mailing list