FTK change. Need to force a flush when a write extends a file without calling extendFile.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@667 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -518,6 +518,21 @@ RCODE F_FileHdl::lowLevelWrite(
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if( RC_BAD( rc = size( &ui64CurrFileSize)))
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
if( ui64CurrFileSize <= ui64WriteOffset + uiBytesToWrite)
|
||||
{
|
||||
// The file is being extended. We must force a flush
|
||||
// to ensure that the directory entry is updated.
|
||||
|
||||
m_bFlushRequired = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if( !pvBuffer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user