fix cast of pointer: ULONG -> ULONG_PTR

svn path=/trunk/; revision=33135
This commit is contained in:
Timo Kreuzer 2008-04-25 01:09:28 +00:00
parent 26ce8577f2
commit 3115ae246c

View file

@ -90,7 +90,7 @@ LdrGetProcedureAddress (IN PVOID BaseAddress,
Ordinal &= 0x0000FFFF;
if (Ordinal - ExportDir->Base < ExportDir->NumberOfFunctions)
{
*ProcedureAddress = (PVOID)((ULONG)BaseAddress + (ULONG)AddressPtr[Ordinal - ExportDir->Base]);
*ProcedureAddress = (PVOID)((ULONG_PTR)BaseAddress + (ULONG_PTR)AddressPtr[Ordinal - ExportDir->Base]);
return STATUS_SUCCESS;
}
DPRINT1("LdrGetProcedureAddress: Can't resolve symbol @%d\n", Ordinal);