Don't pass a NULL pointer to cdAudio_OpenTrack
This should fix bug #11879 git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5328 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
9fcaf6c08f
commit
da0b168df3
|
@ -136,6 +136,9 @@ BOOL cdAudio_PlayTrack(SONG_CONTEXT context)
|
|||
{
|
||||
const char *filename = PlayList_CurrentSong();
|
||||
|
||||
if (filename == NULL)
|
||||
return false;
|
||||
|
||||
return cdAudio_OpenTrack(filename);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue