diff options
Diffstat (limited to 'base/platform_thread_win.cc')
-rw-r--r-- | base/platform_thread_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/platform_thread_win.cc b/base/platform_thread_win.cc index 7b62d8e..00efdc1 100644 --- a/base/platform_thread_win.cc +++ b/base/platform_thread_win.cc @@ -47,11 +47,11 @@ void PlatformThread::Sleep(int duration_ms) { } // static -void PlatformThread::SetName(int thread_id, const char* name) { +void PlatformThread::SetName(const char* name) { THREADNAME_INFO info; info.dwType = 0x1000; info.szName = name; - info.dwThreadID = thread_id; + info.dwThreadID = CurrentId(); info.dwFlags = 0; __try { |