1
0
Fork 0

Fix bug 512, reported by philipp. (checking wrong variable to see if malloc was a success)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4254
This commit is contained in:
Peter Veenstra 2019-09-02 16:50:30 +00:00
parent 05f15ac4c0
commit 25e01bd042

View file

@ -490,7 +490,7 @@ skip_shot:
if (!capture.video.buf)
goto skip_video;
capture.video.index = (Bit8u*)malloc( 16*4096 );
if (!capture.video.buf)
if (!capture.video.index)
goto skip_video;
capture.video.indexsize = 16*4096;
capture.video.indexused = 8;