[NTOS:IO] Avoid magic value in LdrProcessDriverModule.

This commit is contained in:
Hermès Bélusca-Maïto 2023-04-05 01:39:32 +02:00
parent 8b35e46903
commit 4c6f7c01e5
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -710,7 +710,7 @@ LdrProcessDriverModule(PLDR_DATA_TABLE_ENTRY LdrEntry,
{
NTSTATUS Status;
UNICODE_STRING BaseName, BaseDirectory;
PLOAD_IMPORTS LoadedImports = (PVOID)-2;
PLOAD_IMPORTS LoadedImports = MM_SYSLDR_NO_IMPORTS;
PCHAR MissingApiName, Buffer;
PWCHAR MissingDriverName;
PVOID DriverBase = LdrEntry->DllBase;