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 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,