diff options
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/mtfxmldump.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx index 87588c1f869f..aa927771c0c9 100644 --- a/test/source/mtfxmldump.cxx +++ b/test/source/mtfxmldump.cxx @@ -25,15 +25,14 @@ const size_t constMaxActionType = 513; int lclWriteCallback(void* pContext, const char* sBuffer, int nLen) { SvStream* pStream = static_cast<SvStream*>(pContext); - pStream->Write(sBuffer, nLen); - return nLen; + return (int) pStream->Write(sBuffer, nLen); } int lclCloseCallback(void* pContext) { SvStream* pStream = static_cast<SvStream*>(pContext); - pStream->WriteChar('\0'); - return 0; + pStream->Flush(); + return 0; // 0 or -1 in case of error } OUString flagToString(sal_uInt16 nFlag) |