summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-14 06:10:23 +0000
committertron <tron@openttd.org>2005-07-14 06:10:23 +0000
commit1a046ff4c6f0295328ccc0cd6a4cd7a491f7ddbf (patch)
tree016b1be5e9c4ff1b5e741db9480198939cb4e486 /win32.c
parentbe98b1bf7e1c7fdab206746084de7cb1a062d672 (diff)
downloadopenttd-1a046ff4c6f0295328ccc0cd6a4cd7a491f7ddbf.tar.xz
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32.c b/win32.c
index 590e41600..d5bcdf7c6 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)