mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:55:55 +00:00
Fix almost the same bug in LdrGetProcedureAddress as in r24397
svn path=/trunk/; revision=24398
This commit is contained in:
parent
80da4a434c
commit
948a1f9045
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ LdrGetProcedureAddress (IN PVOID BaseAddress,
|
||||||
NamePtr = (PULONG)((ULONG_PTR)BaseAddress + (ULONG)ExportDir->AddressOfNames);
|
NamePtr = (PULONG)((ULONG_PTR)BaseAddress + (ULONG)ExportDir->AddressOfNames);
|
||||||
for( i = 0; i < ExportDir->NumberOfNames; i++, NamePtr++, OrdinalPtr++)
|
for( i = 0; i < ExportDir->NumberOfNames; i++, NamePtr++, OrdinalPtr++)
|
||||||
{
|
{
|
||||||
if (!_strnicmp(Name->Buffer, (char*)((ULONG_PTR)BaseAddress + *NamePtr), Name->Length))
|
if (!strcmp(Name->Buffer, (char*)((ULONG_PTR)BaseAddress + *NamePtr)))
|
||||||
{
|
{
|
||||||
*ProcedureAddress = (PVOID)((ULONG_PTR)BaseAddress + (ULONG)AddressPtr[*OrdinalPtr]);
|
*ProcedureAddress = (PVOID)((ULONG_PTR)BaseAddress + (ULONG)AddressPtr[*OrdinalPtr]);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue