Author: tkreuzer
Date: Sun Jul 27 06:41:11 2008
New Revision: 34843
URL:
http://svn.reactos.org/svn/reactos?rev=34843&view=rev
Log:
LdrPEGetExportByName:
The function and name table in the PE consists of RVA's that are stored in ULONGs.
Change pointers accordingly PULONG* -> ULONG*
Modified:
branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/imageldr.c
Modified: branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/imageldr.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/boot/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/imageldr.c
[iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/imageldr.c
[iso-8859-1] Sun Jul 27 06:41:11 2008
@@ -231,8 +231,8 @@
USHORT Hint)
{
PIMAGE_EXPORT_DIRECTORY ExportDir;
- PULONG * ExFunctions;
- PULONG * ExNames;
+ ULONG * ExFunctions;
+ ULONG * ExNames;
USHORT * ExOrdinals;
PVOID ExName;
ULONG Ordinal;
@@ -267,10 +267,10 @@
/*
* Get header pointers
*/
- ExNames = (PULONG *)RVA(BaseAddress, ExportDir->AddressOfNames);
+ ExNames = (ULONG *)RVA(BaseAddress, ExportDir->AddressOfNames);
ExOrdinals = (USHORT *)RVA(BaseAddress, ExportDir->AddressOfNameOrdinals);
- ExFunctions = (PULONG *)RVA(BaseAddress, ExportDir->AddressOfFunctions);
-
+ ExFunctions = (ULONG *)RVA(BaseAddress, ExportDir->AddressOfFunctions);
+
/*
* Check the hint first
*/