sys: implement FastIo operations

FspFastIoQueryOpen: return FALSE when RelatedFileObject is not NULL
This commit is contained in:
Bill Zissimopoulos 2018-09-07 16:38:31 -07:00
parent 3dfbdc313b
commit 02a4d3641e
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3

View File

@ -1897,6 +1897,10 @@ BOOLEAN FspFastIoQueryOpen(
PFILE_OBJECT FileObject = IrpSp->FileObject;
FSP_FSCTL_FILE_INFO FileInfoBuf;
if (0 != FileObject->RelatedFileObject)
/* sorry, no can do relative opens in here */
FSP_RETURN(Result = FALSE);
Result = FspFileNodeTryGetFileInfoByName(IrpSp->DeviceObject, &FileObject->FileName, &FileInfoBuf);
if (Result)
{