mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
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:
parent
af2f349608
commit
f621b49574
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user