https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3d4b8783fd0b9b8231a46…
commit 3d4b8783fd0b9b8231a46e7b914447b86255e35b
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Mon Nov 6 19:49:47 2017 +0100
[CDFS_NEW] Force calling convention to allow build
---
drivers/filesystems/cdfs_new/pnp.c | 2 ++
drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/drivers/filesystems/cdfs_new/pnp.c b/drivers/filesystems/cdfs_new/pnp.c
index c9106fe958..596ac288c7 100755
--- a/drivers/filesystems/cdfs_new/pnp.c
+++ b/drivers/filesystems/cdfs_new/pnp.c
@@ -51,6 +51,7 @@ CdPnpCancelRemove (
);
NTSTATUS
+NTAPI /* ReactOS Change: GCC Does not support STDCALL by default */
CdPnpCompletionRoutine (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@@ -774,6 +775,7 @@ Return Value:
//
NTSTATUS
+NTAPI /* ReactOS Change: GCC Does not support STDCALL by default */
CdPnpCompletionRoutine (
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 ed075d0a1a..738aacd9ef 100644
--- a/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff
+++ b/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff
@@ -973,6 +973,26 @@ Index: drivers/filesystems/cdfs_new/fsctrl.c
VOLUME_ID_LENGTH,
(PCHAR) Vcb->Vpb->VolumeLabel );
+Index: drivers/filesystems/cdfs_new/pnp.c
+===================================================================
+--- drivers/filesystems/cdfs_new/pnp.c (revision 34615)
++++ drivers/filesystems/cdfs_new/pnp.c (working copy)
+@@ -51,6 +51,7 @@
+ );
+
+ NTSTATUS
++NTAPI /* ReactOS Change: GCC Does not support STDCALL by default */
+ CdPnpCompletionRoutine (
+ IN PDEVICE_OBJECT DeviceObject,
+ IN PIRP Irp,
+@@ -774,6 +775,7 @@
+ //
+
+ NTSTATUS
++NTAPI /* ReactOS Change: GCC Does not support STDCALL by default */
+ CdPnpCompletionRoutine (
+ IN PDEVICE_OBJECT DeviceObject,
+ IN PIRP Irp,
Index: drivers/filesystems/cdfs_new/workque.c
===================================================================
--- drivers/filesystems/cdfs_new/workque.c (revision 34615)