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(
break;
case SystemModuleInformation:
/* FIXME: should be system-wide */
ret = LdrQueryProcessModuleInformation( SystemInformation, Length, &len );
if (!SystemInformation) ret = STATUS_ACCESS_VIOLATION;
else ret = LdrQueryProcessModuleInformation( SystemInformation, Length, &len );
break;
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