From 7b139bbb5cb1da4c443e8163c2a14adc8ba93a29 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sun, 12 May 2019 23:12:41 +0200 Subject: [PATCH] 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 Signed-off-by: Alexandre Julliard --- 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 c59b003e586..f787990da42 100644 --- a/programs/services/utils.c +++ b/programs/services/utils.c @@ -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;