diff --git a/ASCOfficeDocFile/DocFormatTest/DocFormatTest.cpp b/ASCOfficeDocFile/DocFormatTest/DocFormatTest.cpp index 2590e0cbce..b0bd7a2ff6 100644 --- a/ASCOfficeDocFile/DocFormatTest/DocFormatTest.cpp +++ b/ASCOfficeDocFile/DocFormatTest/DocFormatTest.cpp @@ -93,7 +93,7 @@ HRESULT convert_single(std::wstring srcFileName) if (hRes == S_OK) { COfficeUtils oCOfficeUtils(NULL); - hRes = oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstPath, -1); + hRes = oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstPath, true); } NSDirectory::DeleteDirectory(dstTempPath); diff --git a/ASCOfficePPTFile/PptFormatTest/PptFormatTest.cpp b/ASCOfficePPTFile/PptFormatTest/PptFormatTest.cpp index 9a25d58aea..dae74e5cd9 100644 --- a/ASCOfficePPTFile/PptFormatTest/PptFormatTest.cpp +++ b/ASCOfficePPTFile/PptFormatTest/PptFormatTest.cpp @@ -82,7 +82,7 @@ HRESULT convert_single(std::wstring srcFileName) if (hRes == S_OK) { COfficeUtils oCOfficeUtils(NULL); - hRes = oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstPath, -1); + hRes = oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstPath, true); } NSDirectory::DeleteDirectory(dstTempPath); diff --git a/ASCOfficeRtfFile/RtfFormatTest/RtfFormatTest.cpp b/ASCOfficeRtfFile/RtfFormatTest/RtfFormatTest.cpp index 83e44ecad6..38292a7ba6 100644 --- a/ASCOfficeRtfFile/RtfFormatTest/RtfFormatTest.cpp +++ b/ASCOfficeRtfFile/RtfFormatTest/RtfFormatTest.cpp @@ -64,7 +64,7 @@ HRESULT convert_single(std::wstring srcFileName) // rtf->docx rtfConvert.ConvertRtfToOOX(srcFileName, dstTempPath); - if (S_OK != oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstFileName.c_str(), -1)) + if (S_OK != oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstFileName.c_str(), true)) return S_FALSE; } else diff --git a/ASCOfficeTxtFile/TxtFormatTest/TxtFormatTest.cpp b/ASCOfficeTxtFile/TxtFormatTest/TxtFormatTest.cpp index 60b986e368..103d2cd0ec 100644 --- a/ASCOfficeTxtFile/TxtFormatTest/TxtFormatTest.cpp +++ b/ASCOfficeTxtFile/TxtFormatTest/TxtFormatTest.cpp @@ -71,7 +71,7 @@ int _tmain(int argc, _TCHAR* argv[]) if (S_OK != txtFile.txt_LoadFromFile(srcFileName, dstTempPath, sXMLOptions)) return 2; - if (S_OK != oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstFileName.c_str(), -1)) + if (S_OK != oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstFileName.c_str(), true)) return S_FALSE; } else diff --git a/ASCOfficeXlsFile2/XlsFormatTest/XlsFormatTest.cpp b/ASCOfficeXlsFile2/XlsFormatTest/XlsFormatTest.cpp index 8059bfa37f..dfcbbb8d41 100644 --- a/ASCOfficeXlsFile2/XlsFormatTest/XlsFormatTest.cpp +++ b/ASCOfficeXlsFile2/XlsFormatTest/XlsFormatTest.cpp @@ -74,7 +74,7 @@ HRESULT convert_single(std::wstring srcFileName) if (hr == S_OK) { COfficeUtils oCOfficeUtils(NULL); - hr = oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstPath.c_str(), -1); + hr = oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), dstPath.c_str(), true); } NSDirectory::DeleteDirectory(dstTempPath);