diff --git a/dll/cpl/desk/classinst.c b/dll/cpl/desk/classinst.c index 2c73aced777..c0038cfa635 100644 --- a/dll/cpl/desk/classinst.c +++ b/dll/cpl/desk/classinst.c @@ -246,35 +246,9 @@ DisplayClassInstaller( /* FIXME: install OpenGLSoftwareSettings section */ - /* Start the device */ - if (SetupDiRestartDevices(DeviceInfoSet, DeviceInfoData)) - { - /* Reenumerate display devices ; this will rescan for potential new devices */ - DisplayDevice.cb = sizeof(DISPLAY_DEVICE); - EnumDisplayDevices(NULL, 0, &DisplayDevice, 0); - } - else - { - rc = GetLastError(); - DPRINT("SetupDiRestartDevices() failed with error 0x%lx. Will reboot later.\n", rc); - - /* Mark device as needing a restart */ - InstallParams.cbSize = sizeof(InstallParams); - if (!SetupDiGetDeviceInstallParams(DeviceInfoSet, DeviceInfoData, &InstallParams)) - { - rc = GetLastError(); - DPRINT("SetupDiGetDeviceInstallParams() failed with error 0x%lx\n", rc); - goto cleanup; - } - InstallParams.Flags |= DI_NEEDRESTART; - result = SetupDiSetDeviceInstallParams(DeviceInfoSet, DeviceInfoData, &InstallParams); - if (!result) - { - rc = GetLastError(); - DPRINT("SetupDiSetDeviceInstallParams() failed with error 0x%lx\n", rc); - goto cleanup; - } - } + /* Reenumerate display devices ; this will rescan for potential new devices */ + DisplayDevice.cb = sizeof(DISPLAY_DEVICE); + EnumDisplayDevices(NULL, 0, &DisplayDevice, 0); rc = ERROR_SUCCESS;