зеркало из https://github.com/mozilla/gecko-dev.git
Bug 531363: test flags correctly in jpeg decoder. r=bholley
This commit is contained in:
Родитель
35f9a54159
Коммит
445bbc5280
|
@ -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);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче