| Index: core/src/fxcrt/fx_basic_buffer.cpp
|
| diff --git a/core/src/fxcrt/fx_basic_buffer.cpp b/core/src/fxcrt/fx_basic_buffer.cpp
|
| index f623d995c783d7a517978b3a11e56e2950435f1a..a3039f4188bd61e032dea4ed9c41f9b78711faa9 100644
|
| --- a/core/src/fxcrt/fx_basic_buffer.cpp
|
| +++ b/core/src/fxcrt/fx_basic_buffer.cpp
|
| @@ -381,7 +381,7 @@ bool CFX_FileBufferArchive::Flush() {
|
| return false;
|
| if (!m_pBuffer || !nRemaining)
|
| return true;
|
| - return m_pFile->WriteBlock(m_pBuffer.get(), nRemaining);
|
| + return m_pFile->WriteBlock(m_pBuffer.get(), nRemaining) > 0;
|
| }
|
|
|
| int32_t CFX_FileBufferArchive::AppendBlock(const void* pBuf, size_t size) {
|
|
|