services: Allow reading binary registry values as DWORDs.

Some programs/services actually save those values as a registry
value of the type REG_BINARY.

Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 7b139bbb5c)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
Tim Schumacher 2019-05-12 23:12:41 +02:00 committed by Michael Stefaniuc
parent f91928eb69
commit e948441070
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ DWORD load_reg_dword(HKEY hKey, LPCWSTR szValue, DWORD *output)
return ERROR_SUCCESS;
goto failed;
}
if (type != REG_DWORD || size != sizeof(DWORD))
if ((type != REG_DWORD && type != REG_BINARY) || size != sizeof(DWORD))
{
err = ERROR_INVALID_DATATYPE;
goto failed;