Commit 93d3ecb9 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

winecoreaudio: Fix RegEnumKeyExW() call passing wrong unit for the buffer size.

The function takes the number of (wide) characters in input, not bytes.
parent 2821d9cb
......@@ -388,7 +388,7 @@ static BOOL get_deviceid_by_guid(GUID *guid, DWORD *id, EDataFlow *flow)
DWORD size, type;
GUID reg_guid;
key_name_size = sizeof(key_name);
key_name_size = ARRAY_SIZE(key_name);
if(RegEnumKeyExW(devices_key, i++, key_name, &key_name_size, NULL,
NULL, NULL, NULL) != ERROR_SUCCESS)
break;
......
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