Serge Gautherie : advpack: RegQueryValueExW() wants bytes, not chars.

Alexandre Julliard julliard at winehq.org
Thu May 28 17:11:08 CDT 2020


Module: wine
Branch: master
Commit: a359e026662251b7c3367fe2815dcb6cb371af50
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a359e026662251b7c3367fe2815dcb6cb371af50

Author: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Date:   Thu May 28 04:30:19 2020 +0200

advpack: RegQueryValueExW() wants bytes, not chars.

Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/advpack/advpack.c b/dlls/advpack/advpack.c
index f2de8a6b25..e3d4d50837 100644
--- a/dlls/advpack/advpack.c
+++ b/dlls/advpack/advpack.c
@@ -907,7 +907,7 @@ HRESULT WINAPI UserInstStubWrapperW(HWND hWnd, HINSTANCE hInstance,
 {
     HKEY setup, guid;
     WCHAR stub[MAX_PATH];
-    DWORD size = MAX_PATH;
+    DWORD size = sizeof(stub);
     HRESULT hr = S_OK;
     BOOL res;
 




More information about the wine-cvs mailing list