Commit 2adf4376 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

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

parent bb5b1d75
......@@ -434,7 +434,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))
{
......
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