Skip to content

Commit 267d102

Browse files
committedAug 1, 2019
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.
1 parent d0a2bc7 commit 267d102

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/video/gapi/SDL_gapivideo.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ SDL_Surface *GAPI_SetVideoMode(_THIS, SDL_Surface *current,
733733
video->w = gapi->w = width;
734734
video->h = gapi->h = height;
735735
video->pitch = SDL_CalculatePitch(video);
736-
if (!current->pitch) {
736+
if (!video->pitch) {
737737
return(NULL);
738738
}
739739

‎src/video/windib/SDL_dibvideo.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ SDL_Surface *DIB_SetVideoMode(_THIS, SDL_Surface *current,
675675
video->w = width;
676676
video->h = height;
677677
video->pitch = SDL_CalculatePitch(video);
678-
if (!current->pitch) {
678+
if (!video->pitch) {
679679
return(NULL);
680680
}
681681

‎src/video/windx5/SDL_dx5video.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ SDL_Surface *DX5_SetVideoMode(_THIS, SDL_Surface *current,
11271127
video->w = width;
11281128
video->h = height;
11291129
video->pitch = SDL_CalculatePitch(video);
1130-
if (!current->pitch) {
1130+
if (!video->pitch) {
11311131
return(NULL);
11321132
}
11331133

0 commit comments

Comments
 (0)