[ros-diffs] [tkreuzer] 33135: fix cast of pointer: ULONG -> ULONG_PTR
tkreuzer at svn.reactos.org
tkreuzer at svn.reactos.org
Fri Apr 25 03:09:28 CEST 2008
Author: tkreuzer
Date: Thu Apr 24 20:09:28 2008
New Revision: 33135
URL: http://svn.reactos.org/svn/reactos?rev=33135&view=rev
Log:
fix cast of pointer: ULONG -> ULONG_PTR
Modified:
trunk/reactos/subsystems/win32/win32k/ldr/loader.c
Modified: trunk/reactos/subsystems/win32/win32k/ldr/loader.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ldr/loader.c?rev=33135&r1=33134&r2=33135&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ldr/loader.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ldr/loader.c [iso-8859-1] Thu Apr 24 20:09:28 2008
@@ -90,7 +90,7 @@
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);
@@ -269,7 +269,7 @@
{
NTSTATUS Status;
- DPRINT("hModule 0x%x\n", hModule);
+ DPRINT("hModule 0x%x\n", hModule);
Status = ZwSetSystemInformation(SystemUnloadGdiDriverInformation,
&hModule, sizeof(HANDLE));
@@ -292,7 +292,7 @@
Current = CONTAINING_RECORD(CurrentEntry, DRIVERS, ListEntry);
if( Current ) {
- if(Current->ImageHandle == hModule) {
+ if(Current->ImageHandle == hModule) {
ExFreePool(Current->DriverName.Buffer);
RemoveEntryList(&Current->ListEntry);
ExFreePool(Current);
More information about the Ros-diffs
mailing list