Commit 02c6e453 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Pass correct buffer length to RegQueryValueExW().

parent 5a6efe63
......@@ -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)
......
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