mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-14 15:52:47 -05:00
dll, sys: WIP
This commit is contained in:
@ -295,7 +295,7 @@ NTSTATUS FspCreateDeviceObjectList(
|
||||
PDRIVER_OBJECT DriverObject, PDEVICE_OBJECT **PDeviceObjects, PULONG PDeviceObjectCount);
|
||||
VOID FspDeleteDeviceObjectList(
|
||||
PDEVICE_OBJECT *DeviceObjects, ULONG DeviceObjectCount);
|
||||
NTSTATUS FspHasDeviceObject(
|
||||
NTSTATUS FspLookupDeviceObject(
|
||||
PDRIVER_OBJECT DriverObject, PDEVICE_OBJECT DeviceObject);
|
||||
|
||||
/* debug */
|
||||
|
@ -108,10 +108,10 @@ static NTSTATUS FspFsctlMountVolume(
|
||||
PAGED_CODE();
|
||||
|
||||
NTSTATUS Result;
|
||||
PDEVICE_OBJECT RealDevice = IrpSp->Parameters.MountVolume.DeviceObject;
|
||||
PDEVICE_OBJECT RealDevice = IrpSp->Parameters.MountVolume.Vpb->RealDevice;
|
||||
|
||||
/* check the passed in volume object; it must be one of our own */
|
||||
Result = FspHasDeviceObject(DeviceObject->DriverObject, RealDevice);
|
||||
Result = FspLookupDeviceObject(DeviceObject->DriverObject, RealDevice);
|
||||
if (!NT_SUCCESS(Result))
|
||||
{
|
||||
if (STATUS_NO_SUCH_DEVICE == Result)
|
||||
|
@ -83,7 +83,7 @@ VOID FspDeleteDeviceObjectList(
|
||||
ExFreePoolWithTag(DeviceObjects, FSP_TAG);
|
||||
}
|
||||
|
||||
NTSTATUS FspHasDeviceObject(
|
||||
NTSTATUS FspLookupDeviceObject(
|
||||
PDRIVER_OBJECT DriverObject, PDEVICE_OBJECT DeviceObject)
|
||||
{
|
||||
NTSTATUS Result = STATUS_NO_SUCH_DEVICE;
|
||||
|
Reference in New Issue
Block a user