Skip to content

Commit

Permalink
fix copy+paste mistakes in commit 9b0e5c555c0f (CVE-2019-7637 fix):
Browse files Browse the repository at this point in the history
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 267d102
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/video/gapi/SDL_gapivideo.c
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/video/windib/SDL_dibvideo.c
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/video/windx5/SDL_dx5video.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 267d102

Please sign in to comment.