mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:46:38 +00:00
- 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:
parent
ffe9d022e2
commit
4b9642ee43
1 changed files with 2 additions and 1 deletions
|
@ -1266,6 +1266,7 @@ SSI_DEF(SystemLoadGdiDriverInformation)
|
||||||
KPROCESSOR_MODE PreviousMode = KeGetPreviousMode();
|
KPROCESSOR_MODE PreviousMode = KeGetPreviousMode();
|
||||||
UNICODE_STRING ImageName;
|
UNICODE_STRING ImageName;
|
||||||
PVOID ImageBase;
|
PVOID ImageBase;
|
||||||
|
PLDR_DATA_TABLE_ENTRY ModuleObject;
|
||||||
ULONG_PTR EntryPoint;
|
ULONG_PTR EntryPoint;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
ULONG DirSize;
|
ULONG DirSize;
|
||||||
|
@ -1287,7 +1288,7 @@ SSI_DEF(SystemLoadGdiDriverInformation)
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
NULL,
|
(PVOID)&ModuleObject,
|
||||||
&ImageBase);
|
&ImageBase);
|
||||||
if (!NT_SUCCESS(Status)) return Status;
|
if (!NT_SUCCESS(Status)) return Status;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue