]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
Added ability to switch off more components of the size page UI
[wxWidgets.git] / src / msw / thread.cpp
index 4d58a67d776267785b550819dd7d585baaa3a037..90d47a663e6939cca4bf64451bf4daffc7a55554 100644 (file)
@@ -905,7 +905,8 @@ bool wxThreadInternal::Suspend()
     DWORD nSuspendCount = ::SuspendThread(m_hThread);
     if ( nSuspendCount == (DWORD)-1 )
     {
     DWORD nSuspendCount = ::SuspendThread(m_hThread);
     if ( nSuspendCount == (DWORD)-1 )
     {
-        wxLogSysError(_("Cannot suspend thread %lx"), GetThreadId(m_hThread));
+        wxLogSysError(_("Cannot suspend thread %lx"),
+                      static_cast<unsigned long>(wxPtrToUInt(m_hThread)));
 
         return false;
     }
 
         return false;
     }
@@ -920,7 +921,8 @@ bool wxThreadInternal::Resume()
     DWORD nSuspendCount = ::ResumeThread(m_hThread);
     if ( nSuspendCount == (DWORD)-1 )
     {
     DWORD nSuspendCount = ::ResumeThread(m_hThread);
     if ( nSuspendCount == (DWORD)-1 )
     {
-        wxLogSysError(_("Cannot resume thread %lx"), GetThreadId(m_hThread));
+        wxLogSysError(_("Cannot resume thread %lx"),
+                      static_cast<unsigned long>(wxPtrToUInt(m_hThread)));
 
         return false;
     }
 
         return false;
     }