Skip to content

Commit

Permalink
fix a bad merge in commit 1a1189c2978f
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jul 10, 2019
1 parent 25877d3 commit 4624b44
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions IMG_bmp.c
Expand Up @@ -670,14 +670,6 @@ LoadICOCUR_RW(SDL_RWops * src, int type, int freesrc)
goto done;
}

/* sanity check image size, so we don't overflow integers, etc. */
if ((biWidth < 0) || (biWidth > 0xFFFFFF) ||
(biHeight < 0) || (biHeight > 0xFFFFFF)) {
IMG_SetError("Unsupported or invalid ICO dimensions");
was_error = SDL_TRUE;
goto done;
}

/* Create a RGBA surface */
biHeight = biHeight >> 1;
//printf("%d x %d\n", biWidth, biHeight);
Expand Down

0 comments on commit 4624b44

Please sign in to comment.