Commit 703e8209 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

winex11: Pass correct buffer length to RegQueryValueExW().

parent 0bff5fb9
......@@ -967,7 +967,7 @@ static Cursor create_xcursor_system_cursor( const ICONINFOEXW *info )
HKEY key;
WCHAR *p, name[MAX_PATH * 2], valueW[64];
char valueA[64];
DWORD size, ret;
DWORD ret;
if (!info->szModName[0]) return 0;
......@@ -982,7 +982,7 @@ static Cursor create_xcursor_system_cursor( const ICONINFOEXW *info )
/* @@ Wine registry key: HKCU\Software\Wine\X11 Driver\Cursors */
if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\X11 Driver\\Cursors", &key ))
{
size = sizeof(valueW) / sizeof(WCHAR);
DWORD size = sizeof(valueW);
ret = RegQueryValueExW( key, name, NULL, NULL, (BYTE *)valueW, &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