+CAPTIVE_STDCALL calling by hand to workaround broken GCC.
authorshort <>
Tue, 23 Sep 2003 09:12:42 +0000 (09:12 +0000)
committershort <>
Tue, 23 Sep 2003 09:12:42 +0000 (09:12 +0000)
ntoskrnl/io/irp.c

index 5b5f105..ec45149 100644 (file)
@@ -154,7 +154,14 @@ IofCallDriver(PDEVICE_OBJECT DeviceObject,
       KeBugCheck(0);
     }
 
+#ifndef LIBCAPTIVE
   return DriverObject->MajorFunction[Param->MajorFunction](DeviceObject, Irp);
+#else /* !LIBCAPTIVE */
+       return (NTSTATUS)captive_stdcall_call_8(
+                       (CaptiveStdCallFunc8)DriverObject->MajorFunction[Param->MajorFunction],
+                       DeviceObject,
+                       Irp);
+#endif /* LIBCAPTIVE */
 }