From 1a046ff4c6f0295328ccc0cd6a4cd7a491f7ddbf Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 14 Jul 2005 06:10:23 +0000 Subject: [PATCH] (svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail --- win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32.c b/win32.c index 590e416004..d5bcdf7c6e 100644 --- a/win32.c +++ b/win32.c @@ -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)