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;
|
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:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue