From 3d4b8783fd0b9b8231a46e7b914447b86255e35b Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 6 Nov 2017 19:49:47 +0100 Subject: [PATCH] [CDFS_NEW] Force calling convention to allow build --- drivers/filesystems/cdfs_new/pnp.c | 2 ++ .../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 c9106fe9582..596ac288c7b 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 ed075d0a1a2..738aacd9eff 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)