mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 17:03:12 -05:00
sys: write: implementation
This commit is contained in:
parent
892e8eb025
commit
f87eeb9db5
@ -47,6 +47,13 @@ static NTSTATUS FspFsvolWrite(
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* only regular files can be written */
|
||||||
|
if (((FSP_FILE_NODE *)IrpSp->FileObject->FsContext)->IsDirectory)
|
||||||
|
{
|
||||||
|
Result = STATUS_INVALID_PARAMETER;
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
/* do we have anything to write? */
|
/* do we have anything to write? */
|
||||||
if (0 == IrpSp->Parameters.Write.Length)
|
if (0 == IrpSp->Parameters.Write.Length)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user