Fix some pointer casts.

svn path=/trunk/; revision=16969
This commit is contained in:
Filip Navara 2005-08-02 13:53:52 +00:00
parent ef03d1cb40
commit b0c4274c66

View file

@ -1375,8 +1375,8 @@ LdrPEGetExportByOrdinal (
? RVA(BaseAddress, ExFunctions[Ordinal - ExportDir->Base] )
: NULL;
if (((ULONG)Function >= (ULONG)ExportDir) &&
((ULONG)Function < (ULONG)ExportDir + (ULONG)ExportDirSize))
if (((ULONG_PTR)Function >= (ULONG_PTR)ExportDir) &&
((ULONG_PTR)Function < (ULONG_PTR)ExportDir + ExportDirSize))
{
DPRINT("Forward: %s\n", (PCHAR)Function);
Function = LdrPEFixupForward((PCHAR)Function);