added space after if (), added back == -1
This commit is contained in:
parent
084001bce3
commit
0d4a3a8fdc
@ -338,7 +338,7 @@ void menuEntryParseIcon(menuEntry_s* me) {
|
|||||||
return;
|
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);
|
free(me->icon_gfx);
|
||||||
me->icon_gfx = NULL;
|
me->icon_gfx = NULL;
|
||||||
tjDestroy(_jpegDecompressor);
|
tjDestroy(_jpegDecompressor);
|
||||||
@ -347,7 +347,7 @@ void menuEntryParseIcon(menuEntry_s* me) {
|
|||||||
|
|
||||||
if (w != 256 || h != 256 ) return;
|
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);
|
free(me->icon_gfx);
|
||||||
me->icon_gfx = NULL;
|
me->icon_gfx = NULL;
|
||||||
tjDestroy(_jpegDecompressor);
|
tjDestroy(_jpegDecompressor);
|
||||||
|
Loading…
Reference in New Issue
Block a user