summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-22 15:12:51 +0000
committertron <tron@openttd.org>2005-07-22 15:12:51 +0000
commit1b6ff121f4b8c07311d1022392f85e58db41aea0 (patch)
treedb4d5584363cc8d5c1964e401229c594d05a4a5a
parent290bb2fda692f9015643858be62ff55e952f0c9d (diff)
downloadopenttd-1b6ff121f4b8c07311d1022392f85e58db41aea0.tar.xz
(svn r2680) Fix a warning
-rw-r--r--w32dm2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/w32dm2.cpp b/w32dm2.cpp
index 09ecf385d..409dfea73 100644
--- a/w32dm2.cpp
+++ b/w32dm2.cpp
@@ -240,14 +240,14 @@ bool LoadMIDI (char *directory, char *filename)
// next we need to tell the segment what kind of data it contains. We do this
// with the IDirectMusicSegment::SetParam function.
if (FAILED(segment->SetParam((REFGUID)GUID_StandardMIDIFile,
- -1, 0, 0, (LPVOID)performance))) {
+ 0xFFFFFFFF, 0, 0, (LPVOID)performance))) {
MSGBOX("LoadMIDI: SetParam (MIDI file) failed");
return false;
}
// finally, we need to tell the segment to 'download' the instruments
if (FAILED(segment->SetParam((REFGUID)GUID_Download,
- -1, 0, 0, (LPVOID)performance))) {
+ 0xFFFFFFFF, 0, 0, (LPVOID)performance))) {
MSGBOX("LoadMIDI: Failed to download instruments");
return false;
}