Commit 68a61821 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Add check for null pointer in NtQuerySystemInformation(SystemModuleInformation).

parent cf7cfa85
...@@ -845,7 +845,8 @@ NTSTATUS WINAPI NtQuerySystemInformation( ...@@ -845,7 +845,8 @@ NTSTATUS WINAPI NtQuerySystemInformation(
break; break;
case SystemModuleInformation: case SystemModuleInformation:
/* FIXME: should be system-wide */ /* FIXME: should be system-wide */
ret = LdrQueryProcessModuleInformation( SystemInformation, Length, &len ); if (!SystemInformation) ret = STATUS_ACCESS_VIOLATION;
else ret = LdrQueryProcessModuleInformation( SystemInformation, Length, &len );
break; break;
case SystemHandleInformation: case SystemHandleInformation:
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment