mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 17:32:57 -05:00
sys: write.c, file.c: better handle failure cases around cache resizing
This commit is contained in:
@ -534,8 +534,12 @@ VOID FspFileNodeSetFileInfo(FSP_FILE_NODE *FileNode, PFILE_OBJECT CcFileObject,
|
||||
FileNode->InfoChangeNumber++;
|
||||
|
||||
if (0 != CcFileObject)
|
||||
FileNode->CcStatus = FspCcSetFileSizes(
|
||||
{
|
||||
NTSTATUS Result = FspCcSetFileSizes(
|
||||
CcFileObject, (PCC_FILE_SIZES)&FileNode->Header.AllocationSize);
|
||||
if (!NT_SUCCESS(Result))
|
||||
CcUninitializeCacheMap(CcFileObject, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
BOOLEAN FspFileNodeTrySetFileInfo(FSP_FILE_NODE *FileNode, PFILE_OBJECT CcFileObject,
|
||||
|
Reference in New Issue
Block a user