[UMPNPMGR] PNP_GetGlobalState returns CM_GLOBAL_STATE_SHUTTING_DOWN on service shutdown

This commit is contained in:
Eric Kohl 2024-11-01 14:43:37 +01:00
parent 978503cd46
commit 91bc5b5e94
3 changed files with 8 additions and 0 deletions

View file

@ -687,6 +687,9 @@ PNP_GetGlobalState(
*pulState = CM_GLOBAL_STATE_CAN_DO_UI | CM_GLOBAL_STATE_SERVICES_AVAILABLE;
if (g_ShuttingDown)
*pulState |= CM_GLOBAL_STATE_SHUTTING_DOWN;
return CR_SUCCESS;
}