Author: tkreuzer
Date: Tue Feb 3 13:26:00 2009
New Revision: 39342
URL:
http://svn.reactos.org/svn/reactos?rev=39342&view=rev
Log:
Fix broken and overcomplicated pointer arithmetic
Modified:
branches/ros-amd64-bringup/reactos/dll/directx/ksuser/ksuser.c
Modified: branches/ros-amd64-bringup/reactos/dll/directx/ksuser/ksuser.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/d…
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/directx/ksuser/ksuser.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/dll/directx/ksuser/ksuser.c [iso-8859-1] Tue Feb 3
13:26:00 2009
@@ -153,7 +153,7 @@
PHANDLE ConnectionHandle)
{
ULONG BufferSize = sizeof(KSPIN_CONNECT);
- PKSDATAFORMAT DataFormat = ((PKSDATAFORMAT) ( ((ULONG)Connect) +
((ULONG)sizeof(KSPIN_CONNECT)) ) );
+ PKSDATAFORMAT DataFormat = (PKSDATAFORMAT)(Connect + 1);
if (DataFormat->Flags & KSDATAFORMAT_ATTRIBUTES)
{