mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
[PORTCLS]
Fix broken "pointer arithmetics" svn path=/trunk/; revision=56326
This commit is contained in:
@@ -161,7 +161,7 @@ CPortWaveRTStreamInit::GetPhysicalPageAddress(
|
||||
return RtlConvertUlongToLargeInteger(0);
|
||||
}
|
||||
|
||||
Buffer = (PVOID)UlongToPtr(PtrToUlong(MmGetSystemAddressForMdlSafe(MemoryDescriptorList, LowPagePriority)) + Index * PAGE_SIZE);
|
||||
Buffer = (PUCHAR)MmGetSystemAddressForMdlSafe(MemoryDescriptorList, LowPagePriority) + (Index * PAGE_SIZE);
|
||||
|
||||
Addr = MmGetPhysicalAddress(Buffer);
|
||||
Address->QuadPart = Addr.QuadPart;
|
||||
|
||||
Reference in New Issue
Block a user