Commit 81f1bb74 authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

исправление ошибки \\192.168.5.3\source\IMAGE\GOOD\BMP\Image 2.bmp

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@65121 954022d7-b5bf-4e40-9824-e11837661b57
parent 3bcf3a85
...@@ -218,7 +218,15 @@ bool CxImageBMP::Decode(CxFile * hFile) ...@@ -218,7 +218,15 @@ bool CxImageBMP::Decode(CxFile * hFile)
case 8 : case 8 :
case 4 : case 4 :
case 1 : case 1 :
if (off + bf.bfOffBits < bmpHeader.biSize)
{
//
// ppt !!!
}
else
{
if (bf.bfOffBits != 0L) hFile->Seek(off + bf.bfOffBits,SEEK_SET); if (bf.bfOffBits != 0L) hFile->Seek(off + bf.bfOffBits,SEEK_SET);
}
switch (dwCompression) { switch (dwCompression) {
case BI_RGB : case BI_RGB :
hFile->Read(info.pImage, head.biSizeImage,1); // read in the pixels hFile->Read(info.pImage, head.biSizeImage,1); // read in the pixels
......
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