[ros-diffs] [tkreuzer] 39505: Fix definition of IoSetCancelRoutine.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sun Feb 8 23:56:32 CET 2009


Author: tkreuzer
Date: Sun Feb  8 16:56:31 2009
New Revision: 39505

URL: http://svn.reactos.org/svn/reactos?rev=39505&view=rev
Log:
Fix definition of IoSetCancelRoutine.

Modified:
    trunk/reactos/include/ddk/winddk.h

Modified: trunk/reactos/include/ddk/winddk.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/winddk.h?rev=39505&r1=39504&r2=39505&view=diff
==============================================================================
--- trunk/reactos/include/ddk/winddk.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/winddk.h [iso-8859-1] Sun Feb  8 16:56:31 2009
@@ -9429,11 +9429,12 @@
  *   IN PIRP  Irp,
  *   IN PDRIVER_CANCEL  CancelRoutine)
  */
-#define IoSetCancelRoutine( Irp, NewCancelRoutine ) (  \
- (PDRIVER_CANCEL)InterlockedExchange( (PLONG)&(Irp)->CancelRoutine, (LONG)(NewCancelRoutine) ) )
-    
-    
-    /*
+#define IoSetCancelRoutine(_Irp, \
+                           _CancelRoutine) \
+  ((PDRIVER_CANCEL) InterlockedExchangePointer( \
+    (PVOID *) &(_Irp)->CancelRoutine, (PVOID) (_CancelRoutine)))
+
+/*
  * VOID
  * IoSetCompletionRoutine(
  *   IN PIRP  Irp,



More information about the Ros-diffs mailing list