mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 10:33:11 +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)
|
DWORD ulFlags)
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(hBinding);
|
UNREFERENCED_PARAMETER(hBinding);
|
||||||
UNREFERENCED_PARAMETER(ulFlags);
|
|
||||||
|
|
||||||
DPRINT("PNP_GetGlobalState(%p %p 0x%08lx)\n",
|
DPRINT("PNP_GetGlobalState(%p %p 0x%08lx)\n",
|
||||||
hBinding, pulState, ulFlags);
|
hBinding, pulState, ulFlags);
|
||||||
|
|
||||||
|
if (ulFlags != 0)
|
||||||
|
return CR_INVALID_FLAG;
|
||||||
|
|
||||||
*pulState = CM_GLOBAL_STATE_CAN_DO_UI | CM_GLOBAL_STATE_SERVICES_AVAILABLE;
|
*pulState = CM_GLOBAL_STATE_CAN_DO_UI | CM_GLOBAL_STATE_SERVICES_AVAILABLE;
|
||||||
|
|
||||||
return CR_SUCCESS;
|
return CR_SUCCESS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue