ntdll: Don't check "info" for NULL in NtQuerySystemInformation(SystemModuleInformation).
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
93107c08f5
commit
6257da8b42
|
@ -2333,9 +2333,6 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
|
|||
"\\SystemRoot\\system32\\drivers\\mountmgr.sys"
|
||||
};
|
||||
|
||||
if (!info) ret = STATUS_ACCESS_VIOLATION;
|
||||
else
|
||||
{
|
||||
ULONG i;
|
||||
SYSTEM_MODULE_INFORMATION *smi = info;
|
||||
|
||||
|
@ -2356,7 +2353,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
|
|||
smi->ModulesCount = i;
|
||||
}
|
||||
else ret = STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue