Author: tkreuzer
Date: Sun Mar 28 05:06:50 2010
New Revision: 46510
URL:
http://svn.reactos.org/svn/reactos?rev=46510&view=rev
Log:
[FREELDR]
- Add a missing cast
Modified:
branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/windows/peloader.c
Modified: branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/windows/peloader.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/boot/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/windows/peloader.c
[iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/windows/peloader.c
[iso-8859-1] Sun Mar 28 05:06:50 2010
@@ -573,7 +573,7 @@
High = ExportDirectory->NumberOfNames - 1;
DPRINTM(DPRINT_PELOADER, "WinLdrpBindImportName() looking up import '%s'
in #0..#%d\n",
-
VaToPa(&((PIMAGE_IMPORT_BY_NAME)VaToPa(ThunkData->u1.AddressOfData))->Name[0]),
High);
+
VaToPa(&((PIMAGE_IMPORT_BY_NAME)VaToPa((PVOID)ThunkData->u1.AddressOfData))->Name[0]),
High);
/* Perform a binary-search loop */
while (High >= Low)
@@ -586,7 +586,7 @@
(PCHAR)VaToPa(RVA(DllBase, NameTable[Middle])));
DPRINTM(DPRINT_PELOADER, "Binary search: comparing Import '%s', Export
#%ld:'%s' -> %d\n",
- VaToPa(&((PIMAGE_IMPORT_BY_NAME)VaToPa(ThunkData->u1.AddressOfData))->Name[0]),
+ VaToPa(&((PIMAGE_IMPORT_BY_NAME)VaToPa((PVOID)ThunkData->u1.AddressOfData))->Name[0]),
Middle, (PCHAR)VaToPa(RVA(DllBase, NameTable[Middle])), Result);
/*DPRINTM(DPRINT_PELOADER, "TE->u1.AOD %p, fulladdr %p\n",