From 445bbc52800aa33981f8533d3fac3e5550c02757 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Mon, 14 Dec 2009 10:35:46 +0000 Subject: [PATCH] Bug 531363: test flags correctly in jpeg decoder. r=bholley --- modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp b/modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp index 61aad2ffe6d9..fcbf6a7153df 100644 --- a/modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp +++ b/modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp @@ -208,7 +208,7 @@ NS_IMETHODIMP nsJPEGDecoder::Close(PRUint32 aFlags) /* 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);