Correctly fix the definition of DRIVER_FS_NOTIFICATION (done the same way as the other DRIVER_xxx "callback" functions; by the way you'll notice they are all NTAPI aka. __stdcall. This is not explicitely mentioned in the W(D)DK, because MS supposes you compile all your kernel-mode code in stdcall convention, the WDK environment coming with preset default compiler switches enabling that. But if you try changing them, you'll run into big troubles. In our headers on the contrary we explicitely mention the calling conventions).

[FLTMGR]
Fix FltpFsNotification to adhere to the correct DRIVER_FS_NOTIFICATION definition.

Addendum to r70410.

svn path=/trunk/; revision=70413
This commit is contained in:
Hermès Bélusca-Maïto 2015-12-23 16:15:08 +00:00
parent 88d5b185b0
commit 07f2fe8cb5
2 changed files with 7 additions and 11 deletions

View file

@ -66,6 +66,7 @@ FltpDetachFromFileSystemDevice(
DRIVER_FS_NOTIFICATION FltpFsNotification;
VOID
NTAPI
FltpFsNotification(
_In_ PDEVICE_OBJECT DeviceObject,
_In_ BOOLEAN FsActive
@ -586,6 +587,7 @@ FltpDetachFromFileSystemDevice(_In_ PDEVICE_OBJECT DeviceObject)
DRIVER_FS_NOTIFICATION FltpFsNotification;
VOID
NTAPI
FltpFsNotification(_In_ PDEVICE_OBJECT DeviceObject,
_In_ BOOLEAN FsActive)
{

View file

@ -6939,17 +6939,11 @@ typedef struct _REMOTE_LINK_TRACKING_INFORMATION {
#define IO_STOP_ON_SYMLINK 0x0008
#define IO_MM_PAGING_FILE 0x0010
//typedef VOID
//( *PDRIVER_FS_NOTIFICATION) (
// _In_ PDEVICE_OBJECT DeviceObject,
// _In_ BOOLEAN FsActive);
typedef
VOID
DRIVER_FS_NOTIFICATION(
_In_ PDEVICE_OBJECT DeviceObject,
_In_ BOOLEAN FsActive
);
_Function_class_(DRIVER_FS_NOTIFICATION)
typedef VOID
(NTAPI DRIVER_FS_NOTIFICATION)(
_In_ PDEVICE_OBJECT DeviceObject,
_In_ BOOLEAN FsActive);
typedef DRIVER_FS_NOTIFICATION *PDRIVER_FS_NOTIFICATION;
typedef enum _FS_FILTER_SECTION_SYNC_TYPE {