Commit dddaeb3e authored by Oleg Korshul's avatar Oleg Korshul

previous commit bug

parent f75b0704
......@@ -856,9 +856,11 @@ namespace PdfWriter
}
void CImageFileStream::Read(BYTE *pBuffer, unsigned int* punSize)
{
*punSize = 0;
if (!OpenFile())
return;
if (!OpenFile())
{
*punSize = 0;
return;
}
DWORD dwBytesToRead = *punSize;
DWORD dwSizeRead = 0;
m_oFile.ReadFile(pBuffer, dwBytesToRead, dwSizeRead);
......
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