LdrpLoadModule called with LOAD_LIBRARY_AS_DATAFILE returns SUCCESS and a valid BaseAddress but no Module

svn path=/trunk/; revision=29543
This commit is contained in:
Christoph von Wittich 2007-10-12 17:15:23 +00:00
parent 6fda4d5f57
commit ff76e56813

View file

@ -753,6 +753,9 @@ LdrLoadDll (IN PWSTR SearchPath OPTIONAL,
RtlLeaveCriticalSection(Peb->LoaderLock);
}
if ((!Module) && (NT_SUCCESS(Status)))
return Status;
*BaseAddress = NT_SUCCESS(Status) ? Module->DllBase : NULL;
return Status;