Commit 798c7b44 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander Trofimov

win build

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64831 954022d7-b5bf-4e40-9824-e11837661b57
parent c5fde96c
...@@ -100,7 +100,7 @@ public: ...@@ -100,7 +100,7 @@ public:
if (lIndex > nCount) if (lIndex > nCount)
return lIndex; return lIndex;
for (size_t nIndex = 0; nIndex < std::min(lIndex, nCount); ++nIndex) for (size_t nIndex = 0; nIndex < (std::min)(lIndex, (DWORD)nCount); ++nIndex)
{ {
if ((*m_parEmptyPictures)[nIndex]) if ((*m_parEmptyPictures)[nIndex])
++lResult; ++lResult;
......
...@@ -341,7 +341,7 @@ namespace NSBinPptxRW ...@@ -341,7 +341,7 @@ namespace NSBinPptxRW
CString CImageManager2::DownloadImageExec(const CString& strFile) CString CImageManager2::DownloadImageExec(const CString& strFile)
{ {
#ifndef DISABLE_FILE_DOWNLOADER #ifndef DISABLE_FILE_DOWNLOADER
CFileDownloader oDownloader(strFile, false); CFileDownloader oDownloader(string2std_string(strFile), false);
oDownloader.Start( 1 ); oDownloader.Start( 1 );
while ( oDownloader.IsRunned() ) while ( oDownloader.IsRunned() )
{ {
...@@ -350,7 +350,7 @@ namespace NSBinPptxRW ...@@ -350,7 +350,7 @@ namespace NSBinPptxRW
if ( oDownloader.IsFileDownloaded() ) if ( oDownloader.IsFileDownloaded() )
{ {
return oDownloader.GetFilePath(); return std_string2string(oDownloader.GetFilePath());
} }
#endif #endif
return _T(""); return _T("");
......
...@@ -293,7 +293,7 @@ namespace NSShapeImageGen ...@@ -293,7 +293,7 @@ namespace NSShapeImageGen
#ifndef DISABLE_FILE_DOWNLOADER #ifndef DISABLE_FILE_DOWNLOADER
CFileDownloader oDownloader(strFile1, true); CFileDownloader oDownloader(string2std_string(strFile1), true);
oDownloader.Start( 1 ); oDownloader.Start( 1 );
while ( oDownloader.IsRunned() ) while ( oDownloader.IsRunned() )
{ {
...@@ -301,7 +301,7 @@ namespace NSShapeImageGen ...@@ -301,7 +301,7 @@ namespace NSShapeImageGen
} }
if ( oDownloader.IsFileDownloaded() ) if ( oDownloader.IsFileDownloaded() )
strDownload = oDownloader.GetFilePath(); strDownload = std_string2string(oDownloader.GetFilePath());
#endif #endif
......
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