From 6043cb26d6682cc8208eef515fc5f5e1e9fc105e Mon Sep 17 00:00:00 2001 From: "Oleg.Korshul" Date: Thu, 24 Dec 2015 16:12:42 +0000 Subject: [PATCH] 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 --- Common/OfficeFileFormatChecker2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/OfficeFileFormatChecker2.cpp b/Common/OfficeFileFormatChecker2.cpp index f27d803ccd..b75fdc33d1 100644 --- a/Common/OfficeFileFormatChecker2.cpp +++ b/Common/OfficeFileFormatChecker2.cpp @@ -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);