mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[UMPNPMGR] Add missing parameter checks to PNP_GetDeviceStatus
This commit is contained in:
parent
41de1bd724
commit
830e15b622
1 changed files with 7 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
* FILE: base/services/umpnpmgr/rpcserver.c
|
||||
* PURPOSE: RPC server
|
||||
* PROGRAMMER: Eric Kohl (eric.kohl@reactos.org)
|
||||
* Hervé Poussineau (hpoussin@reactos.org)
|
||||
* Hervé Poussineau (hpoussin@reactos.org)
|
||||
* Colin Finck (colin@reactos.org)
|
||||
*/
|
||||
|
||||
|
@ -3199,6 +3199,12 @@ PNP_GetDeviceStatus(
|
|||
DPRINT("PNP_GetDeviceStatus(%p %S %p %p 0x%08lx)\n",
|
||||
hBinding, pDeviceID, pulStatus, pulProblem, ulFlags);
|
||||
|
||||
if (ulFlags != 0)
|
||||
return CR_INVALID_FLAG;
|
||||
|
||||
if ((pulStatus == NULL) || (pulProblem == NULL))
|
||||
return CR_INVALID_POINTER;
|
||||
|
||||
if (!IsValidDeviceInstanceID(pDeviceID))
|
||||
return CR_INVALID_DEVINST;
|
||||
|
||||
|
|
Loading…
Reference in a new issue