Fix bug #2151. Thanks to Alex Ionescu.

svn path=/trunk/; revision=27196
This commit is contained in:
Dmitry Gorbachev 2007-06-15 21:46:42 +00:00
parent 7bba5bf9ba
commit a3897f253f

View file

@ -1767,7 +1767,7 @@ LoaderScan:
NtHeader->OptionalHeader.AddressOfEntryPoint);
LdrEntry->SizeOfImage = DriverSize;
LdrEntry->CheckSum = NtHeader->OptionalHeader.CheckSum;
LdrEntry->SectionPointer = NULL; // FIXME: Bug 2151.
LdrEntry->SectionPointer = Section;
/* Now write the DLL name */
LdrEntry->BaseDllName.Buffer = (PVOID)(LdrEntry + 1);