summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2016-10-30 18:22:55 +0000
committermichi_cc <michi_cc@openttd.org>2016-10-30 18:22:55 +0000
commitc83306391e78d660b4c7b1bfef4008ccd5c7e172 (patch)
tree017d634c46d1344a498e441b811972601f162028 /src/music
parentb2fe2c6e3d5570861fcca497da4c7dc8d94078cf (diff)
downloadopenttd-c83306391e78d660b4c7b1bfef4008ccd5c7e172.tar.xz
(svn r27673) -Add: [Win32] Thread names for windows debuggers.
Diffstat (limited to 'src/music')
-rw-r--r--src/music/win32_m.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/music/win32_m.cpp b/src/music/win32_m.cpp
index d3a7019a0..fff0376a0 100644
--- a/src/music/win32_m.cpp
+++ b/src/music/win32_m.cpp
@@ -14,6 +14,7 @@
#include "win32_m.h"
#include <windows.h>
#include <mmsystem.h>
+#include "../os/windows/win32.h"
#include "../safeguards.h"
@@ -105,6 +106,8 @@ static bool MidiIntIsSongPlaying()
static DWORD WINAPI MidiThread(LPVOID arg)
{
+ SetWin32ThreadName(-1, "ottd:win-midi");
+
do {
char *s;
int vol;