Commit 6043cb26 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

recents utf8, create recover folder, recover folder with spaces, create...

recents utf8, create recover folder, recover folder with spaces, create version folder for local editors

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@67210 954022d7-b5bf-4e40-9824-e11837661b57
parent 537becc6
......@@ -167,10 +167,10 @@ bool COfficeFileFormatChecker::isOfficeFile(const std::wstring & fileName)
{
NSFile::CFileBinary file;
if (!file.OpenFile(fileName))
return L"";
return false;
unsigned char* buffer = new unsigned char[4096]; //enaf !!
if (!buffer){file.CloseFile();return L"";}
if (!buffer){file.CloseFile();return false;}
DWORD dwReadBytes = 0;
file.ReadFile(buffer,MIN_SIZE_BUFFER,dwReadBytes);
......
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