sys: write: implementation

This commit is contained in:
Bill Zissimopoulos 2016-02-23 20:23:19 -08:00
parent 892e8eb025
commit f87eeb9db5

View File

@ -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)
{ {