From f155075229d771430f0793700f5048ad4be00e9d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 1 Mar 2013 12:21:41 +0000 Subject: [PATCH] Don't use GetThreadId() in wxMSW code. Revert r73585, GetThreadId() is only available in Vista or later so don't use it. Just cast the handle to an integer explicitly to be able to print it with "%x". git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/thread.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 4d58a67..90d47a6 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -905,7 +905,8 @@ bool wxThreadInternal::Suspend() DWORD nSuspendCount = ::SuspendThread(m_hThread); if ( nSuspendCount == (DWORD)-1 ) { - wxLogSysError(_("Cannot suspend thread %lx"), GetThreadId(m_hThread)); + wxLogSysError(_("Cannot suspend thread %lx"), + static_cast(wxPtrToUInt(m_hThread))); return false; } @@ -920,7 +921,8 @@ bool wxThreadInternal::Resume() DWORD nSuspendCount = ::ResumeThread(m_hThread); if ( nSuspendCount == (DWORD)-1 ) { - wxLogSysError(_("Cannot resume thread %lx"), GetThreadId(m_hThread)); + wxLogSysError(_("Cannot resume thread %lx"), + static_cast(wxPtrToUInt(m_hThread))); return false; } -- 2.7.4