From 63997479956110784a77a5c30ac705c93250c270 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 8 Feb 2009 22:56:31 +0000 Subject: [PATCH] Fix definition of IoSetCancelRoutine. svn path=/trunk/; revision=39505 --- reactos/include/ddk/winddk.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/reactos/include/ddk/winddk.h b/reactos/include/ddk/winddk.h index 55f2d6d9643..c38acc42b80 100644 --- a/reactos/include/ddk/winddk.h +++ b/reactos/include/ddk/winddk.h @@ -9429,11 +9429,12 @@ IoReuseIrp( * 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,