mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 00:13:01 -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
|
||||
#define FSP_ENTER_FIO(...) \
|
||||
PDEVICE_OBJECT FsvolDeviceObject; \
|
||||
if (FspFsmupDeviceExtensionKind == FspDeviceExtension(DeviceObject)->Kind)\
|
||||
switch (FspDeviceExtension(DeviceObject)->Kind)\
|
||||
{ \
|
||||
case FspFsmupDeviceExtensionKind: \
|
||||
FsvolDeviceObject = FspMupGetFsvolDeviceObject(FileObject);\
|
||||
if (0 == FsvolDeviceObject) \
|
||||
{ \
|
||||
@ -315,9 +316,13 @@ VOID FspTraceNtStatus(const char *file, int line, const char *func, NTSTATUS Sta
|
||||
IoStatus->Information = 0; \
|
||||
return TRUE; \
|
||||
} \
|
||||
} \
|
||||
else \
|
||||
break; \
|
||||
case FspFsvolDeviceExtensionKind: \
|
||||
FsvolDeviceObject = DeviceObject;\
|
||||
break; \
|
||||
default: \
|
||||
return FALSE; \
|
||||
} \
|
||||
BOOLEAN Result = TRUE; \
|
||||
BOOLEAN fsp_device_deref = FALSE; \
|
||||
FSP_ENTER_(ioentr, __VA_ARGS__); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user