Skip to content

Commit

Permalink
[BOX32][WRAPPER] Fixed null checking in my32_SDL_SetVideoMode (#1868)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco committed Sep 25, 2024
1 parent 144830b commit 62177d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wrapped32/wrappedsdl1.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ EXPORT void my32_SDL_Quit()
EXPORT void* my32_SDL_SetVideoMode(int width, int height, int bpp, uint32_t flags)
{
my_SDL_Surface_t* ret = my->SDL_SetVideoMode(width, height, bpp, flags);
if (!ret) return ret;
sdl1_videomode_org = ret;
memcpy(&sdl_vm_surface, ret, sizeof(sdl_vm_surface));
if(ret->format) {
Expand Down

0 comments on commit 62177d2

Please sign in to comment.