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

This commit is contained in:
tron 2005-07-14 06:10:23 +00:00
parent be98b1bf7e
commit 1a046ff4c6
1 changed files with 1 additions and 1 deletions

View File

@ -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)