mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:13:01 +00:00
Actually the last entry in export table is NumberOfNames - 1 and not NumberOfNames.
svn path=/trunk/; revision=7868
This commit is contained in:
parent
8fb6b0e581
commit
3360515771
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: utils.c,v 1.78 2004/01/11 00:25:17 hbirr Exp $
|
/* $Id: utils.c,v 1.79 2004/01/24 23:44:26 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1120,7 +1120,7 @@ LdrGetExportByName(PVOID BaseAddress,
|
||||||
* Try a binary search first
|
* Try a binary search first
|
||||||
*/
|
*/
|
||||||
minn = 0;
|
minn = 0;
|
||||||
maxn = ExportDir->NumberOfNames;
|
maxn = ExportDir->NumberOfNames - 1;
|
||||||
while (minn <= maxn)
|
while (minn <= maxn)
|
||||||
{
|
{
|
||||||
ULONG mid;
|
ULONG mid;
|
||||||
|
@ -2079,7 +2079,8 @@ LdrpLoadModule(IN PWSTR SearchPath OPTIONAL,
|
||||||
* relocation. */
|
* relocation. */
|
||||||
if (ImageBase != (PVOID) NtHeaders->OptionalHeader.ImageBase)
|
if (ImageBase != (PVOID) NtHeaders->OptionalHeader.ImageBase)
|
||||||
{
|
{
|
||||||
DPRINT1("Performing relocations\n");
|
DPRINT1("Performing relocations (%x -> %x)\n",
|
||||||
|
NtHeaders->OptionalHeader.ImageBase, ImageBase);
|
||||||
Status = LdrPerformRelocations(NtHeaders, ImageBase);
|
Status = LdrPerformRelocations(NtHeaders, ImageBase);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
@ -2594,7 +2595,7 @@ LdrShutdownThread (VOID)
|
||||||
PLDR_MODULE Module;
|
PLDR_MODULE Module;
|
||||||
|
|
||||||
DPRINT("LdrShutdownThread() called for %wZ\n",
|
DPRINT("LdrShutdownThread() called for %wZ\n",
|
||||||
&ExeModlue->BaseDllName);
|
&ExeModule->BaseDllName);
|
||||||
|
|
||||||
RtlEnterCriticalSection (NtCurrentPeb()->LoaderLock);
|
RtlEnterCriticalSection (NtCurrentPeb()->LoaderLock);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue