Author: fireball
Date: Sun Sep 14 12:58:27 2008
New Revision: 36244
URL:
http://svn.reactos.org/svn/reactos?rev=36244&view=rev
Log:
- Don't call MmLoadSystemImage with a NULL ModuleHandle. This could allow a
simplification of the SystemLoadGdiDriverInformation function.
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Sun Sep 14 12:58:27 2008
@@ -1266,6 +1266,7 @@
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 @@
NULL,
NULL,
0,
- NULL,
+ (PVOID)&ModuleObject,
&ImageBase);
if (!NT_SUCCESS(Status)) return Status;