Author: tkreuzer
Date: Tue Apr 3 14:54:51 2012
New Revision: 56328
URL:
http://svn.reactos.org/svn/reactos?rev=56328&view=rev
Log:
{PORTCLS]
Fix more PtrToUlong fun
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/port_wavertstream.cpp
trunk/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.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:54:51 2012
@@ -165,7 +165,7 @@
Addr = MmGetPhysicalAddress(Buffer);
Address->QuadPart = Addr.QuadPart;
- Result.QuadPart = (PtrToUlong(Address));
+ Result.QuadPart = (ULONG_PTR)Address;
return Result;
}
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp [iso-8859-1] Tue
Apr 3 14:54:51 2012
@@ -134,7 +134,7 @@
IoStatus->Information = Length;
break;
}
- DataRange = (PKSDATARANGE) UlongToPtr(PtrToUlong(DataRange) +
DataRange->FormatSize);
+ DataRange = (PKSDATARANGE)((PUCHAR)DataRange + DataRange->FormatSize);
}
IoStatus->Status = Status;
@@ -230,7 +230,7 @@
// get current irp stack
IoStack = IoGetCurrentIrpStackLocation(Irp);
- // get dispatch context
+ // get dispatch context
DispatchContext = (PDISPATCH_CONTEXT)IoStack->FileObject->FsContext;
// Get the IrpTarget