Commit bb5b1d75 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

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

parent 9314b59a
...@@ -1475,7 +1475,7 @@ static BOOL link_device(const WCHAR *instance, const GUID *guid) ...@@ -1475,7 +1475,7 @@ static BOOL link_device(const WCHAR *instance, const GUID *guid)
if (lr) if (lr)
continue; continue;
length = ARRAY_SIZE(device_instance); length = sizeof(device_instance);
lr = RegQueryValueExW(device_key, device_instanceW, NULL, NULL, (BYTE *)device_instance, &length); lr = RegQueryValueExW(device_key, device_instanceW, NULL, NULL, (BYTE *)device_instance, &length);
if (lr || lstrcmpiW(device_instance, instance)) if (lr || lstrcmpiW(device_instance, instance))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment