Skip to content
Snippets Groups Projects
Commit 68a61821 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

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

parent cf7cfa85
No related merge requests found
......@@ -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:
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment