mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 15:46:52 +00:00
Add missing check
svn path=/trunk/; revision=26232
This commit is contained in:
parent
9a92415ba4
commit
36af38d7dd
1 changed files with 3 additions and 0 deletions
|
@ -1322,6 +1322,9 @@ SSI_DEF(SystemUnloadGdiDriverInformation)
|
|||
if(Size != sizeof(PVOID))
|
||||
return STATUS_INFO_LENGTH_MISMATCH;
|
||||
|
||||
if(KeGetPreviousMode() != KernelMode)
|
||||
return STATUS_PRIVILEGE_NOT_HELD;
|
||||
|
||||
// Scan the module list
|
||||
NextEntry = PsLoadedModuleList.Flink;
|
||||
while(NextEntry != &PsLoadedModuleList)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue