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;