Commit 53d4305f authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

вы догонку (win32)

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59106 954022d7-b5bf-4e40-9824-e11837661b57
parent 4cd8a69f
......@@ -365,8 +365,11 @@ HRESULT CPPTXFile::ConvertPPTYToPPTX(BSTR bsInput, BSTR bsOutput)
BYTE* pSrcBuffer = new BYTE[lFileSize];
oFileBinary.ReadFile(pSrcBuffer, (DWORD)lFileSize);
oFileBinary.CloseFile();
CString srcFolder = FileSystem::Directory::GetFolderPath((CString)bsInput);
CString strBsInput = bsInput;
CString srcFolder = FileSystem::Directory::GetFolderPath(strBsInput);
oWriter.OpenPPTY(pSrcBuffer, lFileSize, srcFolder, m_strFolderThemes);
RELEASEARRAYOBJECTS(pSrcBuffer);
CString strBsOutput = bsOutput;
......
......@@ -2823,10 +2823,6 @@
<Filter
Name="System"
>
<File
RelativePath="..\.\Directory.cpp"
>
</File>
<File
RelativePath="..\.\Directory.h"
>
......
......@@ -1437,10 +1437,6 @@
>
</File>
</Filter>
<File
RelativePath="..\Source\SystemUtility\FileSystem\Directory.cpp"
>
</File>
<File
RelativePath="..\Source\DocxFormat\Docx.cpp"
>
......
......@@ -118,5 +118,12 @@ namespace FileSystem
return filesCount;
}
CString Directory::GetFolderPath(const CString& strFolderPath)
{
int n1 = strFolderPath.ReverseFind('\\');
if (n1 < 0 )
return _T("");
return strFolderPath.Mid(0,n1);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment