From 247f202953aa8655955dbf8727a2d72bf5f71d71 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Thu, 26 Sep 2013 15:08:23 +0100 Subject: [PATCH] Stop asking for a reboot when we install. Any reboot can be deferred to when the child drivers are installed. Signed-off-by: Paul Durrant --- src/coinst/coinst.c | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/coinst/coinst.c b/src/coinst/coinst.c index 370c3f4..1db35bb 100644 --- a/src/coinst/coinst.c +++ b/src/coinst/coinst.c @@ -1602,37 +1602,6 @@ fail1: return FALSE; } -static BOOLEAN -RequestReboot( - IN HDEVINFO DeviceInfoSet, - IN PSP_DEVINFO_DATA DeviceInfoData - ) -{ - SP_DEVINSTALL_PARAMS DeviceInstallParams; - - DeviceInstallParams.cbSize = sizeof (DeviceInstallParams); - - if (!SetupDiGetDeviceInstallParams(DeviceInfoSet, - DeviceInfoData, - &DeviceInstallParams)) - goto fail1; - - DeviceInstallParams.Flags |= DI_NEEDREBOOT; - - Log("Flags = %08x", DeviceInstallParams.Flags); - - if (!SetupDiSetDeviceInstallParams(DeviceInfoSet, - DeviceInfoData, - &DeviceInstallParams)) - goto fail2; - - return TRUE; - -fail2: -fail1: - return FALSE; -} - static FORCEINLINE HRESULT __DifInstallPreProcess( IN HDEVINFO DeviceInfoSet, @@ -1754,7 +1723,6 @@ __DifInstallPostProcess( if (Count == 1) { (VOID) InstallFilter(&GUID_DEVCLASS_SYSTEM, "XENFILT"); (VOID) InstallFilter(&GUID_DEVCLASS_HDC, "XENFILT"); - (VOID) RequestReboot(DeviceInfoSet, DeviceInfoData); } if (ActiveDeviceInstance != NULL) @@ -1938,7 +1906,6 @@ __DifRemovePostProcess( if (Count == 0) { (VOID) RemoveFilter(&GUID_DEVCLASS_HDC, "XENFILT"); (VOID) RemoveFilter(&GUID_DEVCLASS_SYSTEM, "XENFILT"); - (VOID) RequestReboot(DeviceInfoSet, DeviceInfoData); } Log("<===="); -- 2.39.5