Zhiyi Zhang : mshtml: Pass size in bytes to RegQueryValueExW().

Alexandre Julliard julliard at winehq.org
Tue Oct 19 16:07:46 CDT 2021


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

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Tue Oct 19 16:30:58 2021 +0800

mshtml: Pass size in bytes to RegQueryValueExW().

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c
index ae94f224fac..4224d6a2ac4 100644
--- a/dlls/mshtml/nsembed.c
+++ b/dlls/mshtml/nsembed.c
@@ -707,7 +707,7 @@ static WCHAR *find_wine_gecko_reg(void)
     if(res != ERROR_SUCCESS)
         return NULL;
 
-    size = ARRAY_SIZE(buffer);
+    size = sizeof(buffer);
     res = RegQueryValueExW(hkey, L"GeckoPath", NULL, &type, (LPBYTE)buffer, &size);
     RegCloseKey(hkey);
     if(res != ERROR_SUCCESS || type != REG_SZ)




More information about the wine-cvs mailing list