(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail

pull/155/head
tron 19 years ago
parent 404575e4d3
commit f901882638

@ -846,7 +846,7 @@ static long CDECL MidiSendCommand(const char *cmd, ...) {
static bool MidiIntPlaySong(const char *filename)
{
MidiSendCommand("close all");
if (MidiSendCommand("open %s type sequencer alias song", filename) != 0)
if (MidiSendCommand("open \"%s\" type sequencer alias song", filename) != 0)
return false;
if (MidiSendCommand("play song from 0") != 0)

Loading…
Cancel
Save