mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +00:00
[PORTCLS]
Fix broken "pointer arithmetics" svn path=/trunk/; revision=56326
This commit is contained in:
parent
06314bbad2
commit
819033bac0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue