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:
Tim Schumacher 2019-05-12 23:12:41 +02:00 committed by Alexandre Julliard
parent 88e28d971b
commit 7b139bbb5c
1 changed files with 1 additions and 1 deletions

View File

@ -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;