[NTOS:IO]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 30 Apr 2017 19:24:53 +0000 (19:24 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 30 Apr 2017 19:24:53 +0000 (19:24 +0000)
- Fix some extremely broken casts

svn path=/trunk/; revision=74436

reactos/ntoskrnl/io/iomgr/error.c

index dea6569..5065adc 100644 (file)
@@ -486,11 +486,7 @@ IopLogWorker(IN PVOID Parameter)
 
 VOID
 NTAPI
-IopFreeApc(IN PKAPC Apc,
-           IN PKNORMAL_ROUTINE *NormalRoutine,
-           IN PVOID *NormalContext,
-           IN PVOID *SystemArgument1,
-           IN PVOID *SystemArgument2)
+IopFreeApc(IN PKAPC Apc)
 {
     /* Free the APC */
     ExFreePool(Apc);
@@ -498,15 +494,13 @@ IopFreeApc(IN PKAPC Apc,
 
 VOID
 NTAPI
-IopRaiseHardError(IN PKAPC Apc,
-                  IN PKNORMAL_ROUTINE *NormalRoutine,
-                  IN PVOID *NormalContext,
-                  IN PVOID *SystemArgument1,
-                  IN PVOID *SystemArgument2)
+IopRaiseHardError(IN PVOID NormalContext,
+                  IN PVOID SystemArgument1,
+                  IN PVOID SystemArgument2)
 {
-    PIRP Irp = (PIRP)NormalContext;
-    //PVPB Vpb = (PVPB)SystemArgument1;
-    //PDEVICE_OBJECT DeviceObject = (PDEVICE_OBJECT)SystemArgument2;
+    PIRP Irp = NormalContext;
+    //PVPB Vpb = SystemArgument1;
+    //PDEVICE_OBJECT DeviceObject = SystemArgument2;
 
     UNIMPLEMENTED;
 
@@ -683,8 +677,8 @@ IoRaiseHardError(IN PIRP Irp,
                     &Thread->Tcb,
                     Irp->ApcEnvironment,
                     NULL,
-                    (PKRUNDOWN_ROUTINE)IopFreeApc,
-                    (PKNORMAL_ROUTINE)IopRaiseHardError,
+                    IopFreeApc,
+                    IopRaiseHardError,
                     KernelMode,
                     Irp);