From: Vadim Zeitlin Date: Thu, 28 Feb 2013 20:41:14 +0000 (+0000) Subject: Use thread ID and not thread handle in the error messages in wxMSW. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9f298361db63eb8d8f427538b2ff233ce36d08a9 Use thread ID and not thread handle in the error messages in wxMSW. The ID is in general more useful than the handle and this also fixes an assert failure due to mismatch between the HANLDE type and "%x" format specifier. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 0fee1a39e9..4d58a67d77 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -905,7 +905,7 @@ bool wxThreadInternal::Suspend() DWORD nSuspendCount = ::SuspendThread(m_hThread); if ( nSuspendCount == (DWORD)-1 ) { - wxLogSysError(_("Cannot suspend thread %x"), m_hThread); + wxLogSysError(_("Cannot suspend thread %lx"), GetThreadId(m_hThread)); return false; } @@ -920,7 +920,7 @@ bool wxThreadInternal::Resume() DWORD nSuspendCount = ::ResumeThread(m_hThread); if ( nSuspendCount == (DWORD)-1 ) { - wxLogSysError(_("Cannot resume thread %x"), m_hThread); + wxLogSysError(_("Cannot resume thread %lx"), GetThreadId(m_hThread)); return false; }