winemac: Pass correct buffer length to RegQueryValueExW().

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Ken Thomases 2017-02-08 09:30:13 -06:00 committed by Alexandre Julliard
parent 5a6efe6329
commit 02c6e45302
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ CFStringRef copy_system_cursor_name(ICONINFOEXW *info)
DWORD size, ret;
value[0] = 0;
size = sizeof(value) / sizeof(WCHAR);
size = sizeof(value);
ret = RegQueryValueExW(key, name, NULL, NULL, (BYTE *)value, &size);
RegCloseKey(key);
if (!ret)