diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 66297871a4..738d2f311a 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -177,7 +177,11 @@ bool wxAppConsoleBase::Initialize(int& argcOrig, wxChar **argvOrig) #endif #ifndef __WXPALMOS__ +#if wxUSE_UNICODE + if ( m_appName.empty() && (bool) argv ) +#else if ( m_appName.empty() && argv ) +#endif { // the application name is, by default, the name of its executable file wxFileName::SplitPath(argv[0], NULL, &m_appName, NULL);