mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r11154) -Fix [FS#1239]: MIDI failing to play under Windows 95, 98 and ME.
This commit is contained in:
parent
fc371ad994
commit
b12785cf7c
@ -142,7 +142,11 @@ const char *MusicDriver_Win32::Start(const char * const *parm)
|
||||
}
|
||||
|
||||
if (NULL == (_midi.wait_obj = CreateEvent(NULL, FALSE, FALSE, NULL))) return "Failed to create event";
|
||||
if (NULL == (_midi.thread = CreateThread(NULL, 8192, MidiThread, 0, 0, NULL))) return "Failed to create thread";
|
||||
|
||||
/* The lpThreadId parameter of CreateThread (the last parameter)
|
||||
* may NOT be NULL on Windows 95, 98 and ME. */
|
||||
DWORD threadId;
|
||||
if (NULL == (_midi.thread = CreateThread(NULL, 8192, MidiThread, 0, 0, &threadId))) return "Failed to create thread";
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user