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=39... ============================================================================== --- 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,