EcmaCryptReader/Decoder - agile + standart

This commit is contained in:
ElenaSubbotina
2016-07-28 15:06:38 +03:00
parent f1f535f9b9
commit a61abdd02e
6 changed files with 443 additions and 258 deletions

View File

@ -116,8 +116,15 @@ bool COfficeFileFormatChecker::isDocFormatFile (POLE::Storage * storage)
POLE::Stream stream(storage, "WordDocument");
unsigned char buffer[10];
if (stream.read(buffer,10) >0)
if (stream.read(buffer,10) > 0)
{
//ms office 2007 encrypted contains stream WordDocument !!
std::list<std::string> entries = storage->entries("DataSpaces");
if (entries.size() > 0)
return false;
return true;
}
return false;
}