mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 17:32:57 -05:00
sys: IRP_MJ_CREATE: allow simple volume opens
This commit is contained in:
@ -48,6 +48,10 @@ static NTSTATUS FspFsvolCleanup(
|
||||
{
|
||||
PAGED_CODE();
|
||||
|
||||
/* is this a valid FileObject? */
|
||||
if (!FspFileContextIsValid(IrpSp->FileObject->FsContext))
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
NTSTATUS Result;
|
||||
FSP_FSVOL_DEVICE_EXTENSION *FsvolDeviceExtension = FspFsvolDeviceExtension(DeviceObject);
|
||||
PFILE_OBJECT FileObject = IrpSp->FileObject;
|
||||
@ -92,7 +96,8 @@ static NTSTATUS FspFsvolCleanup(
|
||||
|
||||
PDEVICE_OBJECT FsvrtDeviceObject = FsvolDeviceExtension->FsvrtDeviceObject;
|
||||
if (!FspDeviceRetain(FsvrtDeviceObject))
|
||||
return STATUS_CANCELLED;
|
||||
/* IRP_MJ_CLEANUP cannot really fail :-\ */
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user