diff --git a/PdfFile/PdfFile.cpp b/PdfFile/PdfFile.cpp index 458486ceb4..4f772ebbcf 100644 --- a/PdfFile/PdfFile.cpp +++ b/PdfFile/PdfFile.cpp @@ -828,7 +828,7 @@ void CPdfFile::CreatePdf(bool isPDFA) int CPdfFile::SaveToFile(const std::wstring& wsPath) { if (!m_pInternal->pWriter) - return 0; + return 1; return m_pInternal->pWriter->SaveToFile(wsPath); } void CPdfFile::SetPassword(const std::wstring& wsPassword)