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

This commit is contained in:
Alexandre Julliard 2007-07-04 12:07:22 +02:00
parent cf7cfa85eb
commit 68a6182188
1 changed files with 2 additions and 1 deletions

View File

@ -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:
{