Bug 536646 - nsJPEGEncoder::errorExit incorrectly reports JERR_OUT_OF_MEMORY as NS_ERROR_FAILURE instead of NS_ERROR_OUT_OF_MEMORY. r=joe

--HG--
extra : rebase_source : f1097aa56ca3c53270ba236df804ea677aaf0df8
This commit is contained in:
Ehren Metcalfe 2010-03-10 13:50:35 +01:00
parent af2f349608
commit f621b49574

View File

@ -434,6 +434,7 @@ nsJPEGEncoder::errorExit(jpeg_common_struct* cinfo)
switch (cinfo->err->msg_code) {
case JERR_OUT_OF_MEMORY:
error_code = NS_ERROR_OUT_OF_MEMORY;
break;
default:
error_code = NS_ERROR_FAILURE;
}