Commit 7b139bbb authored by Tim Schumacher's avatar Tim Schumacher Committed by Alexandre Julliard

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: 's avatarTim Schumacher <timschumi@gmx.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 88e28d97
......@@ -149,7 +149,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment