Reactos

[DESK] Remove call to SetupDiRestartDevices()

This effectively reverts a6005299c685bb7669ad7ecb1d9c765bcc494c08, and
parts of c3da00c42c472d07f7a4a4c02d6907ad2956ea66.

This call is not required, as umpnpmgr already does what is needed.
However, keep the call to EnumDisplayDevices(), so win32k knows that a
new graphic card has been installed.

CORE-18168

+3 -29
+3 -29
dll/cpl/desk/classinst.c
··· 246 246 247 247 /* FIXME: install OpenGLSoftwareSettings section */ 248 248 249 - /* Start the device */ 250 - if (SetupDiRestartDevices(DeviceInfoSet, DeviceInfoData)) 251 - { 252 - /* Reenumerate display devices ; this will rescan for potential new devices */ 253 - DisplayDevice.cb = sizeof(DISPLAY_DEVICE); 254 - EnumDisplayDevices(NULL, 0, &DisplayDevice, 0); 255 - } 256 - else 257 - { 258 - rc = GetLastError(); 259 - DPRINT("SetupDiRestartDevices() failed with error 0x%lx. Will reboot later.\n", rc); 260 - 261 - /* Mark device as needing a restart */ 262 - InstallParams.cbSize = sizeof(InstallParams); 263 - if (!SetupDiGetDeviceInstallParams(DeviceInfoSet, DeviceInfoData, &InstallParams)) 264 - { 265 - rc = GetLastError(); 266 - DPRINT("SetupDiGetDeviceInstallParams() failed with error 0x%lx\n", rc); 267 - goto cleanup; 268 - } 269 - InstallParams.Flags |= DI_NEEDRESTART; 270 - result = SetupDiSetDeviceInstallParams(DeviceInfoSet, DeviceInfoData, &InstallParams); 271 - if (!result) 272 - { 273 - rc = GetLastError(); 274 - DPRINT("SetupDiSetDeviceInstallParams() failed with error 0x%lx\n", rc); 275 - goto cleanup; 276 - } 277 - } 249 + /* Reenumerate display devices ; this will rescan for potential new devices */ 250 + DisplayDevice.cb = sizeof(DISPLAY_DEVICE); 251 + EnumDisplayDevices(NULL, 0, &DisplayDevice, 0); 278 252 279 253 rc = ERROR_SUCCESS; 280 254