fix copy+paste mistakes in commit 9b0e5c555c0f (CVE-2019-7637 fix): SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Fri, 02 Aug 2019 00:35:05 +0300
branchSDL-1.2
changeset 1298032075e9e2135
parent 12977 37d0eba8fa17
child 12985 aa678571dcd4
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.
src/video/gapi/SDL_gapivideo.c
src/video/windib/SDL_dibvideo.c
src/video/windx5/SDL_dx5video.c
     1.1 --- a/src/video/gapi/SDL_gapivideo.c	Wed Jul 31 23:50:10 2019 +0300
     1.2 +++ b/src/video/gapi/SDL_gapivideo.c	Fri Aug 02 00:35:05 2019 +0300
     1.3 @@ -733,7 +733,7 @@
     1.4  	video->w = gapi->w = width;
     1.5  	video->h = gapi->h = height;
     1.6  	video->pitch = SDL_CalculatePitch(video); 
     1.7 -	if (!current->pitch) {
     1.8 +	if (!video->pitch) {
     1.9  		return(NULL);
    1.10  	}
    1.11  
     2.1 --- a/src/video/windib/SDL_dibvideo.c	Wed Jul 31 23:50:10 2019 +0300
     2.2 +++ b/src/video/windib/SDL_dibvideo.c	Fri Aug 02 00:35:05 2019 +0300
     2.3 @@ -675,7 +675,7 @@
     2.4  	video->w = width;
     2.5  	video->h = height;
     2.6  	video->pitch = SDL_CalculatePitch(video);
     2.7 -	if (!current->pitch) {
     2.8 +	if (!video->pitch) {
     2.9  		return(NULL);
    2.10  	}
    2.11  
     3.1 --- a/src/video/windx5/SDL_dx5video.c	Wed Jul 31 23:50:10 2019 +0300
     3.2 +++ b/src/video/windx5/SDL_dx5video.c	Fri Aug 02 00:35:05 2019 +0300
     3.3 @@ -1127,7 +1127,7 @@
     3.4  		video->w = width;
     3.5  		video->h = height;
     3.6  		video->pitch = SDL_CalculatePitch(video);
     3.7 -		if (!current->pitch) {
     3.8 +		if (!video->pitch) {
     3.9  			return(NULL);
    3.10  		}
    3.11