update for HEAD-2003050101
[reactos.git] / include / ddk / iofuncs.h
index 595b33e..572b26b 100644 (file)
@@ -936,8 +936,8 @@ IoReportResourceUsage (
        (KeInsertQueueDpc(&(DeviceObject)->Dpc,(Irp),(Context)))
 
 #define IoSetCancelRoutine(Irp,NewCancelRoutine) \
-       ((PDRIVER_CANCEL)InterlockedExchange((PULONG)&(Irp)->CancelRoutine, \
-                                            (ULONG)(NewCancelRoutine)))
+       ((PDRIVER_CANCEL)InterlockedExchangePointer(&(Irp)->CancelRoutine, \
+                                            NewCancelRoutine))
 
 #define IoSetCompletionRoutine(Irp,Routine,Context,Success,Error,Cancel) \
        { \