mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 13:11:43 +00:00
fix cast of pointer: ULONG -> ULONG_PTR
svn path=/trunk/; revision=33135
This commit is contained in:
parent
26ce8577f2
commit
3115ae246c
1 changed files with 3 additions and 3 deletions
|
@ -90,7 +90,7 @@ LdrGetProcedureAddress (IN PVOID BaseAddress,
|
||||||
Ordinal &= 0x0000FFFF;
|
Ordinal &= 0x0000FFFF;
|
||||||
if (Ordinal - ExportDir->Base < ExportDir->NumberOfFunctions)
|
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;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
DPRINT1("LdrGetProcedureAddress: Can't resolve symbol @%d\n", Ordinal);
|
DPRINT1("LdrGetProcedureAddress: Can't resolve symbol @%d\n", Ordinal);
|
||||||
|
@ -269,7 +269,7 @@ EngUnloadImage ( IN HANDLE hModule )
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
DPRINT("hModule 0x%x\n", hModule);
|
DPRINT("hModule 0x%x\n", hModule);
|
||||||
|
|
||||||
Status = ZwSetSystemInformation(SystemUnloadGdiDriverInformation,
|
Status = ZwSetSystemInformation(SystemUnloadGdiDriverInformation,
|
||||||
&hModule, sizeof(HANDLE));
|
&hModule, sizeof(HANDLE));
|
||||||
|
@ -292,7 +292,7 @@ EngUnloadImage ( IN HANDLE hModule )
|
||||||
Current = CONTAINING_RECORD(CurrentEntry, DRIVERS, ListEntry);
|
Current = CONTAINING_RECORD(CurrentEntry, DRIVERS, ListEntry);
|
||||||
|
|
||||||
if( Current ) {
|
if( Current ) {
|
||||||
if(Current->ImageHandle == hModule) {
|
if(Current->ImageHandle == hModule) {
|
||||||
ExFreePool(Current->DriverName.Buffer);
|
ExFreePool(Current->DriverName.Buffer);
|
||||||
RemoveEntryList(&Current->ListEntry);
|
RemoveEntryList(&Current->ListEntry);
|
||||||
ExFreePool(Current);
|
ExFreePool(Current);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue