diff --git a/Common/OfficeFileFormatChecker2.cpp b/Common/OfficeFileFormatChecker2.cpp index ae26f91b7e..00f5636a23 100644 --- a/Common/OfficeFileFormatChecker2.cpp +++ b/Common/OfficeFileFormatChecker2.cpp @@ -266,10 +266,10 @@ std::wstring COfficeFileFormatChecker::getDocumentID (const std::wstring & _file { NSFile::CFileBinary file; if (!file.OpenFile(fileName)) - return false; + return documentID; unsigned char* buffer = new unsigned char[4096]; //enaf !! - if (!buffer){file.CloseFile();return false;} + if (!buffer){file.CloseFile();return documentID;} DWORD dwReadBytes = 0; file.ReadFile(buffer, MIN_SIZE_BUFFER, dwReadBytes);