Skip to content

Commit

Permalink
native_midi_win32.c (native_midi_active): Fixed possible crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Nov 26, 2019
1 parent d28cbc3 commit f8f9ca0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions native_midi/native_midi_win32.c
Expand Up @@ -290,6 +290,10 @@ void native_midi_stop()

int native_midi_active()
{
if (!hMidiStream)
return 0;
if (!currentsong)
return 0;
return currentsong->MusicPlaying;
}

Expand Down

0 comments on commit f8f9ca0

Please sign in to comment.