mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 17:03:12 -05:00
sys: testing
This commit is contained in:
parent
cb25c6456d
commit
7d3d7ed6c2
@ -145,6 +145,8 @@ FSP_API NTSTATUS FspFsctlOpenVolume(PWSTR VolumePath,
|
|||||||
|
|
||||||
GlobalDevicePath(DevicePathBuf, sizeof DevicePathBuf, VolumePath);
|
GlobalDevicePath(DevicePathBuf, sizeof DevicePathBuf, VolumePath);
|
||||||
|
|
||||||
|
DEBUGLOG("Device=\"%S\"", DevicePathBuf);
|
||||||
|
|
||||||
VolumeHandle = CreateFileW(DevicePathBuf,
|
VolumeHandle = CreateFileW(DevicePathBuf,
|
||||||
0, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0);
|
0, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0);
|
||||||
if (INVALID_HANDLE_VALUE == VolumeHandle)
|
if (INVALID_HANDLE_VALUE == VolumeHandle)
|
||||||
|
@ -159,7 +159,7 @@ static NTSTATUS FspFsctlCreateVolume(
|
|||||||
RtlCopyMemory(FsvrtDeviceExtension->SecurityDescriptorBuf,
|
RtlCopyMemory(FsvrtDeviceExtension->SecurityDescriptorBuf,
|
||||||
SecurityDescriptorBuf, SecurityDescriptorSize);
|
SecurityDescriptorBuf, SecurityDescriptorSize);
|
||||||
ClearFlag(FsvrtDeviceObject->Flags, DO_DEVICE_INITIALIZING);
|
ClearFlag(FsvrtDeviceObject->Flags, DO_DEVICE_INITIALIZING);
|
||||||
Irp->IoStatus.Information = DeviceName.Length + 1;
|
Irp->IoStatus.Information = DeviceName.Length + sizeof(WCHAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* free the temporary security descriptor */
|
/* free the temporary security descriptor */
|
||||||
@ -246,6 +246,7 @@ static NTSTATUS FspFsvrtDeleteVolume(
|
|||||||
{
|
{
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
|
NTSTATUS Result;
|
||||||
FSP_FSVRT_DEVICE_EXTENSION *FsvrtDeviceExtension = FspFsvrtDeviceExtension(DeviceObject);
|
FSP_FSVRT_DEVICE_EXTENSION *FsvrtDeviceExtension = FspFsvrtDeviceExtension(DeviceObject);
|
||||||
FSP_FSCTL_DEVICE_EXTENSION *FsctlDeviceExtension =
|
FSP_FSCTL_DEVICE_EXTENSION *FsctlDeviceExtension =
|
||||||
FspFsctlDeviceExtension(FsvrtDeviceExtension->FsctlDeviceObject);
|
FspFsctlDeviceExtension(FsvrtDeviceExtension->FsctlDeviceObject);
|
||||||
@ -253,7 +254,6 @@ static NTSTATUS FspFsvrtDeleteVolume(
|
|||||||
ExAcquireResourceExclusiveLite(&FsctlDeviceExtension->Base.Resource, TRUE);
|
ExAcquireResourceExclusiveLite(&FsctlDeviceExtension->Base.Resource, TRUE);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
NTSTATUS Result;
|
|
||||||
PVPB OldVpb;
|
PVPB OldVpb;
|
||||||
BOOLEAN FreeVpb = FALSE;
|
BOOLEAN FreeVpb = FALSE;
|
||||||
KIRQL Irql;
|
KIRQL Irql;
|
||||||
@ -305,7 +305,7 @@ static NTSTATUS FspFsvrtDeleteVolume(
|
|||||||
ExReleaseResourceLite(&FsctlDeviceExtension->Base.Resource);
|
ExReleaseResourceLite(&FsctlDeviceExtension->Base.Resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS FspFsvrtTransact(
|
static NTSTATUS FspFsvrtTransact(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user