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