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:
Zhiyi Zhang 2021-10-20 10:07:06 +08:00 committed by Alexandre Julliard
parent efd98caef1
commit b2099bce9b
1 changed files with 1 additions and 1 deletions

View File

@ -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 ))
{