(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
authortron
Thu, 14 Jul 2005 06:10:23 +0000
changeset 2054 a56fd569160b
parent 2053 d8b10646ac16
child 2055 4926ed1a7562
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
win32.c
--- a/win32.c	Wed Jul 13 20:41:44 2005 +0000
+++ b/win32.c	Thu Jul 14 06:10:23 2005 +0000
@@ -846,7 +846,7 @@
 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)