]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppose I should trust the headers in BC++5.02 more than BC++4.52
authorOve Kaaven <ovek@arcticnet.no>
Wed, 16 Jun 1999 05:13:27 +0000 (05:13 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Wed, 16 Jun 1999 05:13:27 +0000 (05:13 +0000)
(since the headers on BC++4.52 appears incorrect/outdated, compilation will
now fail on 4.52 in Unicode mode... but if you want Unicode, you use the
newest software anyway, right?)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dirdlg.cpp

index 66ad5c708e0dc57b7f7bfef37c6830776f21167b..3c20ff18199d9508503126618b11e6c8109d9ee6 100644 (file)
@@ -66,7 +66,7 @@ int wxDirDialog::ShowModal(void)
   if (m_parent) hWnd = (HWND) m_parent->GetHWND();
 
     BROWSEINFO bi;
-    LPSTR lpBuffer; 
+    LPTSTR lpBuffer;
 //    LPITEMIDLIST pidlPrograms;  // PIDL for Programs folder 
     LPITEMIDLIST pidlBrowse;    // PIDL selected by user 
     LPMALLOC pMalloc = NULL;
@@ -97,7 +97,7 @@ int wxDirDialog::ShowModal(void)
     bi.hwndOwner = hWnd;
     bi.pidlRoot = NULL; // pidlPrograms; 
     bi.pszDisplayName = lpBuffer; 
-    bi.lpszTitle = m_message.mb_str(); // BC++ 4.52 says LPSTR, not LPTSTR?
+    bi.lpszTitle = m_message; // BC++ 4.52 says LPSTR, not LPTSTR?
     bi.ulFlags = 0; 
     bi.lpfn = NULL; 
     bi.lParam = 0;