mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
sys: FSP_ENTER_FIO: handle bogus fast I/O to fsctl device
This commit is contained in:
parent
bda0477a79
commit
deaf475861
@ -306,8 +306,9 @@ VOID FspTraceNtStatus(const char *file, int line, const char *func, NTSTATUS Sta
|
|||||||
return Result
|
return Result
|
||||||
#define FSP_ENTER_FIO(...) \
|
#define FSP_ENTER_FIO(...) \
|
||||||
PDEVICE_OBJECT FsvolDeviceObject; \
|
PDEVICE_OBJECT FsvolDeviceObject; \
|
||||||
if (FspFsmupDeviceExtensionKind == FspDeviceExtension(DeviceObject)->Kind)\
|
switch (FspDeviceExtension(DeviceObject)->Kind)\
|
||||||
{ \
|
{ \
|
||||||
|
case FspFsmupDeviceExtensionKind: \
|
||||||
FsvolDeviceObject = FspMupGetFsvolDeviceObject(FileObject);\
|
FsvolDeviceObject = FspMupGetFsvolDeviceObject(FileObject);\
|
||||||
if (0 == FsvolDeviceObject) \
|
if (0 == FsvolDeviceObject) \
|
||||||
{ \
|
{ \
|
||||||
@ -315,9 +316,13 @@ VOID FspTraceNtStatus(const char *file, int line, const char *func, NTSTATUS Sta
|
|||||||
IoStatus->Information = 0; \
|
IoStatus->Information = 0; \
|
||||||
return TRUE; \
|
return TRUE; \
|
||||||
} \
|
} \
|
||||||
} \
|
break; \
|
||||||
else \
|
case FspFsvolDeviceExtensionKind: \
|
||||||
FsvolDeviceObject = DeviceObject;\
|
FsvolDeviceObject = DeviceObject;\
|
||||||
|
break; \
|
||||||
|
default: \
|
||||||
|
return FALSE; \
|
||||||
|
} \
|
||||||
BOOLEAN Result = TRUE; \
|
BOOLEAN Result = TRUE; \
|
||||||
BOOLEAN fsp_device_deref = FALSE; \
|
BOOLEAN fsp_device_deref = FALSE; \
|
||||||
FSP_ENTER_(ioentr, __VA_ARGS__); \
|
FSP_ENTER_(ioentr, __VA_ARGS__); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user