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

доделано открытие

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@65580 954022d7-b5bf-4e40-9824-e11837661b57
parent b514fb60
......@@ -174,7 +174,7 @@ bool COfficeFileFormatChecker::isOfficeFile(const std::wstring & fileName)
DWORD dwReadBytes = 0;
file.ReadFile(buffer,MIN_SIZE_BUFFER,dwReadBytes);
int sizeRead = (int)file.GetFilePosition();
int sizeRead = (int)dwReadBytes;
file.CloseFile();
if ( isRtfFormatFile(buffer,sizeRead) )
......
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