]> git.saurik.com Git - wxWidgets.git/commitdiff
the #ifdef around BROWSEINFO.lpszTitle assignment is bogus; should be c_str() everywhere
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Oct 2004 21:48:14 +0000 (21:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Oct 2004 21:48:14 +0000 (21:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dirdlg.cpp

index 0177d1d3abf889eba1ad68472eadc88383ec2b52..622e34b051f5091c3c04f60846f6d84d1e6b1a69 100644 (file)
@@ -140,12 +140,7 @@ int wxDirDialog::ShowModal()
     bi.hwndOwner      = parent ? GetHwndOf(parent) : NULL;
     bi.pidlRoot       = NULL;
     bi.pszDisplayName = NULL;
-    // WinCE StandardSDK requires .c_str() form
-#if defined(__WXWINCE__) && (defined(__POCKETPC__) || defined(__SMARTPHONE__))
-    bi.lpszTitle      = m_message.mb_str();
-#else
     bi.lpszTitle      = m_message.c_str();
-#endif
     bi.ulFlags        = BIF_RETURNONLYFSDIRS | BIF_STATUSTEXT;
     bi.lpfn           = BrowseCallbackProc;
     bi.lParam         = (LPARAM)m_path.c_str();    // param for the callback