From e4646bc5d14b322d1e5bd4ffa599d455addbb9f5 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Wed, 7 Apr 2021 21:39:55 +0200 Subject: [PATCH] [SETUPAPI] SetupDiInstallDevice: Do not fail if the .inf file does not have a .Services section CORE-17530 --- dll/win32/setupapi/devinst.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dll/win32/setupapi/devinst.c b/dll/win32/setupapi/devinst.c index d629e138f1d..082be95386e 100644 --- a/dll/win32/setupapi/devinst.c +++ b/dll/win32/setupapi/devinst.c @@ -5609,7 +5609,11 @@ SetupDiInstallDevice( NULL, NULL); if (!Result) - goto cleanup; + { + if (GetLastError() != ERROR_SECTION_NOT_FOUND) + goto cleanup; + SetLastError(ERROR_SUCCESS); + } if (GetLastError() == ERROR_SUCCESS_REBOOT_REQUIRED) RebootRequired = TRUE; -- 2.17.1