winecfg: Pass size in bytes to RegQueryValueExW().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
efd98caef1
commit
b2099bce9b
|
@ -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 ))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue