forked from Mirrors/wine-wine
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
parent
f91928eb69
commit
e948441070
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue