]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/log.cpp
Blind fix to lack of sql types.
[wxWidgets.git] / src / common / log.cpp
index 8323595bde867268045d19f67845caf191e44bc0..258d141ae91a7f4e02efbeea2ce698e63cec58a6 100644 (file)
@@ -558,7 +558,8 @@ void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
         wxAppTraits *traits = wxTheApp ? wxTheApp->GetTraits() : NULL;
         if ( traits && !traits->HasStderr() )
         {
-            wxMessageOutputDebug().Printf(_T("%s"), str.c_str());
+            wxMessageOutputDebug dbgout;
+            dbgout.Printf(_T("%s"), str.c_str());
         }
     }
 }
@@ -749,7 +750,7 @@ const wxChar *wxSysErrorMsg(unsigned long nErrCode)
 
     // copy it to our buffer and free memory
     // Crashes on SmartPhone
-#if !defined(__SMARTPHONE__)
+#if !defined(__SMARTPHONE__) /* of WinCE */
      if( lpMsgBuf != 0 ) {
         wxStrncpy(s_szBuf, (const wxChar *)lpMsgBuf, WXSIZEOF(s_szBuf) - 1);
         s_szBuf[WXSIZEOF(s_szBuf) - 1] = wxT('\0');