Fix definition of IoSetCancelRoutine.

svn path=/trunk/; revision=39505
This commit is contained in:
Timo Kreuzer 2009-02-08 22:56:31 +00:00
parent 81afdb2e7d
commit 6399747995

View file

@ -9429,11 +9429,12 @@ IoReuseIrp(
* IN PIRP Irp, * IN PIRP Irp,
* IN PDRIVER_CANCEL CancelRoutine) * IN PDRIVER_CANCEL CancelRoutine)
*/ */
#define IoSetCancelRoutine( Irp, NewCancelRoutine ) ( \ #define IoSetCancelRoutine(_Irp, \
(PDRIVER_CANCEL)InterlockedExchange( (PLONG)&(Irp)->CancelRoutine, (LONG)(NewCancelRoutine) ) ) _CancelRoutine) \
((PDRIVER_CANCEL) InterlockedExchangePointer( \
(PVOID *) &(_Irp)->CancelRoutine, (PVOID) (_CancelRoutine)))
/*
/*
* VOID * VOID
* IoSetCompletionRoutine( * IoSetCompletionRoutine(
* IN PIRP Irp, * IN PIRP Irp,