Skip to content
Permalink
Browse files
fix copy+paste mistakes in commit 9b0e5c555c0f (CVE-2019-7637 fix):
http://hg.libsdl.org/SDL/rev/9b0e5c555c0f made copy+paste mistakes which
resulted in windows versions failing to set video mode.
  • Loading branch information
sezero committed Aug 1, 2019
1 parent d0a2bc7 commit 267d102f6e9ce32878a6251d5136b176fdd2d49e
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/video/gapi/SDL_gapivideo.c
  2. +1 −1 src/video/windib/SDL_dibvideo.c
  3. +1 −1 src/video/windx5/SDL_dx5video.c
@@ -733,7 +733,7 @@ SDL_Surface *GAPI_SetVideoMode(_THIS, SDL_Surface *current,
video->w = gapi->w = width;
video->h = gapi->h = height;
video->pitch = SDL_CalculatePitch(video);
if (!current->pitch) {
if (!video->pitch) {
return(NULL);
}

@@ -675,7 +675,7 @@ SDL_Surface *DIB_SetVideoMode(_THIS, SDL_Surface *current,
video->w = width;
video->h = height;
video->pitch = SDL_CalculatePitch(video);
if (!current->pitch) {
if (!video->pitch) {
return(NULL);
}

@@ -1127,7 +1127,7 @@ SDL_Surface *DX5_SetVideoMode(_THIS, SDL_Surface *current,
video->w = width;
video->h = height;
video->pitch = SDL_CalculatePitch(video);
if (!current->pitch) {
if (!video->pitch) {
return(NULL);
}

0 comments on commit 267d102

Please sign in to comment.