]> git.saurik.com Git - wxWidgets.git/commitdiff
Use thread ID and not thread handle in the error messages in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Feb 2013 20:41:14 +0000 (20:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Feb 2013 20:41:14 +0000 (20:41 +0000)
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

src/msw/thread.cpp

index 0fee1a39e9f20b7b578efcb3ee14a5a28f48f0f7..4d58a67d776267785b550819dd7d585baaa3a037 100644 (file)
@@ -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;
     }