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:
parent
05f15ac4c0
commit
25e01bd042
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue