ntdll: Add check for null pointer in NtQuerySystemInformation(SystemModuleInformation).
This commit is contained in:
parent
cf7cfa85eb
commit
68a6182188
|
@ -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:
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue