mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 09:22:57 -05:00
sys: write.c, file.c: better handle failure cases around cache resizing
This commit is contained in:
@ -231,7 +231,9 @@ static NTSTATUS FspFsvolWriteCached(
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
cleanup:
|
||||
CcGetFileSizePointer(FileObject)->QuadPart = OriginalFileSize;
|
||||
/* pull back the cache file size if we extended it */
|
||||
if (ExtendingFile)
|
||||
CcGetFileSizePointer(FileObject)->QuadPart = OriginalFileSize;
|
||||
|
||||
FspFileNodeRelease(FileNode, Main);
|
||||
|
||||
|
Reference in New Issue
Block a user