Author: tkreuzer
Date: Tue Apr 3 14:43:52 2012
New Revision: 56326
URL:
http://svn.reactos.org/svn/reactos?rev=56326&view=rev
Log:
[PORTCLS]
Fix broken "pointer arithmetics"
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavertstream.cpp
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavertstream.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavertstream.cpp [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavertstream.cpp [iso-8859-1] Tue
Apr 3 14:43:52 2012
@@ -161,7 +161,7 @@
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;