mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[UMPNPMGR] Check ulFlags in PNP_GetGlobalState
Return CR_INVALID_FLAG if ulFlags is not zero.
This commit is contained in:
parent
13e6cbcafa
commit
024daea0af
1 changed files with 3 additions and 1 deletions
|
@ -659,11 +659,13 @@ PNP_GetGlobalState(
|
|||
DWORD ulFlags)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(hBinding);
|
||||
UNREFERENCED_PARAMETER(ulFlags);
|
||||
|
||||
DPRINT("PNP_GetGlobalState(%p %p 0x%08lx)\n",
|
||||
hBinding, pulState, ulFlags);
|
||||
|
||||
if (ulFlags != 0)
|
||||
return CR_INVALID_FLAG;
|
||||
|
||||
*pulState = CM_GLOBAL_STATE_CAN_DO_UI | CM_GLOBAL_STATE_SERVICES_AVAILABLE;
|
||||
|
||||
return CR_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue