- Don't call MmLoadSystemImage with a NULL ModuleHandle. This could allow a simplification of the SystemLoadGdiDriverInformation function.

svn path=/trunk/; revision=36244
This commit is contained in:
Aleksey Bragin 2008-09-14 17:58:27 +00:00
parent ffe9d022e2
commit 4b9642ee43

View file

@ -1266,6 +1266,7 @@ SSI_DEF(SystemLoadGdiDriverInformation)
KPROCESSOR_MODE PreviousMode = KeGetPreviousMode();
UNICODE_STRING ImageName;
PVOID ImageBase;
PLDR_DATA_TABLE_ENTRY ModuleObject;
ULONG_PTR EntryPoint;
NTSTATUS Status;
ULONG DirSize;
@ -1287,7 +1288,7 @@ SSI_DEF(SystemLoadGdiDriverInformation)
NULL,
NULL,
0,
NULL,
(PVOID)&ModuleObject,
&ImageBase);
if (!NT_SUCCESS(Status)) return Status;