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
This commit is contained in:
Vadim Zeitlin
2013-02-28 20:41:14 +00:00
parent a990673bb9
commit 9f298361db

View 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;
}