https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7b19676e2b541983f1062…
commit 7b19676e2b541983f1062ba1c563099284646010
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Mon Nov 6 19:52:43 2017 +0100
[CDFS_NEW] Force calling convention to allow build
---
drivers/filesystems/cdfs_new/devctrl.c | 2 ++
drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/drivers/filesystems/cdfs_new/devctrl.c
b/drivers/filesystems/cdfs_new/devctrl.c
index 786a36d924..41461526df 100755
--- a/drivers/filesystems/cdfs_new/devctrl.c
+++ b/drivers/filesystems/cdfs_new/devctrl.c
@@ -27,6 +27,7 @@ Abstract:
//
NTSTATUS
+NTAPI /* ReactOS Change: GCC Does not support STDCALL by default */
CdDevCtrlCompletionRoutine (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@@ -171,6 +172,7 @@ Return Value:
//
NTSTATUS
+NTAPI /* ReactOS Change: GCC Does not support STDCALL by default */
CdDevCtrlCompletionRoutine (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
diff --git a/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff
b/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff
index 738aacd9ef..46023ebfb9 100644
--- a/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff
+++ b/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff
@@ -844,6 +844,26 @@ Index: drivers/filesystems/cdfs_new/cleanup.c
//
// If appropriate, try to spark teardown by purging the volume. Should
+Index: drivers/filesystems/cdfs_new/devctrl.c
+===================================================================
+--- drivers/filesystems/cdfs_new/devctrl.c (revision 34615)
++++ drivers/filesystems/cdfs_new/devctrl.c (working copy)
+@@ -27,6 +27,7 @@
+ //
+
+ NTSTATUS
++NTAPI /* ReactOS Change: GCC Does not support STDCALL by default */
+ CdDevCtrlCompletionRoutine (
+ IN PDEVICE_OBJECT DeviceObject,
+ IN PIRP Irp,
+@@ -171,6 +172,7 @@
+ //
+
+ NTSTATUS
++NTAPI /* ReactOS Change: GCC Does not support STDCALL by default */
+ CdDevCtrlCompletionRoutine (
+ IN PDEVICE_OBJECT DeviceObject,
+ IN PIRP Irp,
Index: drivers/filesystems/cdfs_new/strucsup.c
===================================================================
--- drivers/filesystems/cdfs_new/strucsup.c (revision 34615)