Commit b2099bce authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

winecfg: Pass size in bytes to RegQueryValueExW().

parent efd98cae
......@@ -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 ))
{
......
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