Fixed bug #8897 - SDL_BlitSurface segfault when dest_rect is null

This commit is contained in:
Sylvain 2024-01-22 09:22:41 +01:00
parent ed5d3d9f82
commit 237535b23a
No known key found for this signature in database
GPG key ID: 5F87E02E5BC0939E

View file

@ -772,7 +772,7 @@ int SDL_UpperBlit(SDL_Surface *src, const SDL_Rect *srcrect,
if (dstrect) { /* update output parameter */
*dstrect = r_dst;
}
return SDL_LowerBlit(src, &r_src, dst, dstrect);
return SDL_LowerBlit(src, &r_src, dst, &r_dst);
}
end: