Bug 531363: test flags correctly in jpeg decoder. r=bholley

This commit is contained in:
Jonathan Kew 2009-12-14 10:35:46 +00:00
Родитель 35f9a54159
Коммит 445bbc5280
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -208,7 +208,7 @@ NS_IMETHODIMP nsJPEGDecoder::Close(PRUint32 aFlags)
/* If we're doing a full decode and haven't notified of completion yet, /* If we're doing a full decode and haven't notified of completion yet,
* we must not have got everything we wanted. Send error notifications. */ * we must not have got everything we wanted. Send error notifications. */
if (!(aFlags & CLOSE_FLAG_DONTNOTIFY) && if (!(aFlags & CLOSE_FLAG_DONTNOTIFY) &&
!(mFlags && imgIDecoder::DECODER_FLAG_HEADERONLY) && !(mFlags & imgIDecoder::DECODER_FLAG_HEADERONLY) &&
!mNotifiedDone) !mNotifiedDone)
NotifyDone(/* aSuccess = */ PR_FALSE); NotifyDone(/* aSuccess = */ PR_FALSE);