Author: cwittich
Date: Fri Oct 12 21:15:23 2007
New Revision: 29543
URL:
http://svn.reactos.org/svn/reactos?rev=29543&view=rev
Log:
LdrpLoadModule called with LOAD_LIBRARY_AS_DATAFILE returns SUCCESS and a valid
BaseAddress but no Module
Modified:
trunk/reactos/dll/ntdll/ldr/utils.c
Modified: trunk/reactos/dll/ntdll/ldr/utils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/utils.c?rev=…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/utils.c (original)
+++ trunk/reactos/dll/ntdll/ldr/utils.c Fri Oct 12 21:15:23 2007
@@ -752,6 +752,9 @@
Status = LdrpAttachProcess();
RtlLeaveCriticalSection(Peb->LoaderLock);
}
+
+ if ((!Module) && (NT_SUCCESS(Status)))
+ return Status;
*BaseAddress = NT_SUCCESS(Status) ? Module->DllBase : NULL;