added space after if (), added back == -1

This commit is contained in:
NightlyFox 2018-09-30 16:59:23 -05:00
parent 084001bce3
commit 0d4a3a8fdc

View File

@ -338,7 +338,7 @@ void menuEntryParseIcon(menuEntry_s* me) {
return;
}
if(tjDecompressHeader2(_jpegDecompressor, me->icon, me->icon_size, &w, &h, &samp)) {
if (tjDecompressHeader2(_jpegDecompressor, me->icon, me->icon_size, &w, &h, &samp) == -1) {
free(me->icon_gfx);
me->icon_gfx = NULL;
tjDestroy(_jpegDecompressor);
@ -347,7 +347,7 @@ void menuEntryParseIcon(menuEntry_s* me) {
if (w != 256 || h != 256 ) return;
if(tjDecompress2(_jpegDecompressor, me->icon, me->icon_size, me->icon_gfx, w, 0, h, TJPF_RGB, TJFLAG_ACCURATEDCT)) {
if (tjDecompress2(_jpegDecompressor, me->icon, me->icon_size, me->icon_gfx, w, 0, h, TJPF_RGB, TJFLAG_ACCURATEDCT) == -1) {
free(me->icon_gfx);
me->icon_gfx = NULL;
tjDestroy(_jpegDecompressor);