Tim Schumacher : services: Allow reading binary registry values as DWORDs.
Alexandre Julliard
julliard at winehq.org
Mon Nov 25 09:12:23 CST 2019
Module: wine
Branch: stable
Commit: e948441070af720c73df5136a194acd3c889c1e0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e948441070af720c73df5136a194acd3c889c1e0
Author: Tim Schumacher <timschumi at gmx.de>
Date: Sun May 12 23:12:41 2019 +0200
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 at gmx.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 7b139bbb5cb1da4c443e8163c2a14adc8ba93a29)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
programs/services/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/services/utils.c b/programs/services/utils.c
index aead38aeaa..48f5dbf706 100644
--- a/programs/services/utils.c
+++ b/programs/services/utils.c
@@ -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;
More information about the wine-cvs
mailing list