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>
This commit is contained in:
parent
88e28d971b
commit
7b139bbb5c
|
@ -149,7 +149,7 @@ DWORD load_reg_dword(HKEY hKey, LPCWSTR szValue, DWORD *output)
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
if (type != REG_DWORD || size != sizeof(DWORD))
|
if ((type != REG_DWORD && type != REG_BINARY) || size != sizeof(DWORD))
|
||||||
{
|
{
|
||||||
err = ERROR_INVALID_DATATYPE;
|
err = ERROR_INVALID_DATATYPE;
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
Loading…
Reference in New Issue