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

Alexandre Julliard julliard at winehq.org
Wed Oct 20 15:58:39 CDT 2021


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

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Wed Oct 20 10:06:37 2021 +0800

winemac.drv: 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/winemac.drv/display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winemac.drv/display.c b/dlls/winemac.drv/display.c
index 4a3b1ff39cb..99c852d7ffe 100644
--- a/dlls/winemac.drv/display.c
+++ b/dlls/winemac.drv/display.c
@@ -1475,7 +1475,7 @@ static BOOL link_device(const WCHAR *instance, const GUID *guid)
         if (lr)
             continue;
 
-        length = ARRAY_SIZE(device_instance);
+        length = sizeof(device_instance);
         lr = RegQueryValueExW(device_key, device_instanceW, NULL, NULL, (BYTE *)device_instance, &length);
         if (lr || lstrcmpiW(device_instance, instance))
         {




More information about the wine-cvs mailing list