Skip to content
Snippets Groups Projects
Commit b2099bce authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard
Browse files

winecfg: Pass size in bytes to RegQueryValueExW().

parent efd98cae
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ static DWORD get_drive_type( char letter )
else
{
WCHAR buffer[80];
DWORD size = ARRAY_SIZE(buffer);
DWORD size = sizeof(buffer);
if (!RegQueryValueExW( hKey, driveValue, NULL, NULL, (LPBYTE)buffer, &size ))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment