]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/init.cpp
Hopefully fixed library names generated by wx-config for OS/2's PM port.
[wxWidgets.git] / src / common / init.cpp
index 9343b390f1fc6b647cd2b38d322b29934a173276..aaeec98204efee2bf87b15a2996358d4b423578a 100644 (file)
@@ -400,17 +400,13 @@ void wxEntryCleanup()
 
 int wxEntryReal(int& argc, wxChar **argv)
 {
-#if wxUSE_LOG
-    // Create a non-GUI log target, to be used until GUI (if any) is ready.
-    // Target will be reset by wxAppConsole::Initialize, when GUI logging will work.
-    wxLog::GetActiveTarget();
-#endif
-
     // library initialization
     if ( !wxEntryStart(argc, argv) )
     {
+#if wxUSE_LOG
         // flush any log messages explaining why we failed
         delete wxLog::SetActiveTarget(NULL);
+#endif
         return -1;
     }