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

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2021-10-20 10:06:47 +08:00 committed by Alexandre Julliard
parent bb5b1d7554
commit 2adf4376d8
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{