Bug 531363: test flags correctly in jpeg decoder. r=bholley
authorJonathan Kew <jfkthame@gmail.com>
Mon, 14 Dec 2009 10:35:46 +0000
changeset 35715 f5ae3ffa3363a50ea9c5a339419958c9e1450b24
parent 35714 c961ea762a53c8c87e8d5c48372d61345480c22b
child 35716 b83bcfdab5abe811ff4c7807c0dd93c63e343f4f
push id10691
push userjkew@mozilla.com
push dateMon, 14 Dec 2009 10:39:18 +0000
treeherdermozilla-central@44c392db6672 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs531363
milestone1.9.3a1pre
Bug 531363: test flags correctly in jpeg decoder. r=bholley
modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp
--- a/modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp
+++ b/modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp
@@ -203,17 +203,17 @@ NS_IMETHODIMP nsJPEGDecoder::Close(PRUin
   /* If we already know we're in an error state, don't
      bother flagging another one here. */
   if (mState == JPEG_ERROR)
     return NS_OK;
 
   /* 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. */
   if (!(aFlags & CLOSE_FLAG_DONTNOTIFY) &&
-      !(mFlags && imgIDecoder::DECODER_FLAG_HEADERONLY) &&
+      !(mFlags & imgIDecoder::DECODER_FLAG_HEADERONLY) &&
       !mNotifiedDone)
     NotifyDone(/* aSuccess = */ PR_FALSE);
 
   /* Otherwise, no problems. */
   return NS_OK;
 }
 
 /* void flush (); */