sys: FSP_FILE_NODE: change number field access through inline functions

This commit is contained in:
Bill Zissimopoulos
2016-10-05 17:30:50 -07:00
parent 59eb40fd9b
commit 43f333e8a6
4 changed files with 27 additions and 4 deletions

View File

@ -549,7 +549,8 @@ static NTSTATUS FspFsvolQueryStreamInformationSuccess(
return STATUS_INFO_LENGTH_MISMATCH; /* ???: what is the best code to return here? */
}
FspIopRequestContext(Request, RequestInfoChangeNumber) = (PVOID)FileNode->StreamInfoChangeNumber;
FspIopRequestContext(Request, RequestInfoChangeNumber) = (PVOID)
FspFileNodeStreamInfoChangeNumber(FileNode);
FspIopRequestContext(Request, RequestFileNode) = 0;
FspFileNodeReleaseOwner(FileNode, Full, Request);
@ -752,7 +753,8 @@ NTSTATUS FspFsvolQueryInformationComplete(
if (0 != FspIopRequestContext(Request, RequestFileNode))
{
FspIopRequestContext(Request, RequestInfoChangeNumber) = (PVOID)FileNode->InfoChangeNumber;
FspIopRequestContext(Request, RequestInfoChangeNumber) = (PVOID)
FspFileNodeFileInfoChangeNumber(FileNode);
FspIopRequestContext(Request, RequestFileNode) = 0;
FspFileNodeReleaseOwner(FileNode, Full, Request);