mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
DocFormat - правка багов (файлы com-сервера)
This commit is contained in:
committed by
Alexander Trofimov
parent
9db24f8e66
commit
e5f9ea5091
@ -24,14 +24,14 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
|
||||
HRESULT hRes = docFile.LoadFromFile( sSrcDoc, dstTempPath, NULL);
|
||||
|
||||
if (hRes != S_OK)return 2;
|
||||
|
||||
COfficeUtils oCOfficeUtils(NULL);
|
||||
if (S_OK != oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), sDstDocx, -1))
|
||||
return 1;
|
||||
if (hRes == S_OK)
|
||||
{
|
||||
COfficeUtils oCOfficeUtils(NULL);
|
||||
hRes = oCOfficeUtils.CompressFileOrDirectory(dstTempPath.c_str(), sDstDocx, -1);
|
||||
}
|
||||
|
||||
FileSystem::Directory::DeleteDirectory(dstTempPath);
|
||||
|
||||
return 0;
|
||||
return hRes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user