summaryrefslogtreecommitdiff
path: root/plugins/Mir_core/threads.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Mir_core/threads.cpp')
-rw-r--r--plugins/Mir_core/threads.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Mir_core/threads.cpp b/plugins/Mir_core/threads.cpp
index 68fb526f5d..90dcdaaf5d 100644
--- a/plugins/Mir_core/threads.cpp
+++ b/plugins/Mir_core/threads.cpp
@@ -354,12 +354,12 @@ typedef struct tagTHREADNAME_INFO
} THREADNAME_INFO;
#pragma pack(pop)
-MIR_CORE_DLL(void) Thread_SetName(DWORD dwThreadID, const char *szThreadName)
+MIR_CORE_DLL(void) Thread_SetName(const char *szThreadName)
{
THREADNAME_INFO info;
info.dwType = 0x1000;
info.szName = szThreadName;
- info.dwThreadID = dwThreadID;
+ info.dwThreadID = GetCurrentThreadId();
info.dwFlags = 0;
__try