X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/837e57436a89516a5fa9f478f401e06bd872c17c..049426fc8013b222c71ce44ca491e7461499085f:/src/msw/dirdlg.cpp diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index 80b5e4dbb4..4be95f9efe 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -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; @@ -77,7 +77,7 @@ int wxDirDialog::ShowModal(void) return wxID_CANCEL; // Allocate a buffer to receive browse information. - if ((lpBuffer = (LPSTR) pMalloc->Alloc(MAX_PATH)) == NULL) + if ((lpBuffer = (LPTSTR) pMalloc->Alloc(MAX_PATH)) == NULL) { pMalloc->Release(); return wxID_CANCEL; @@ -94,11 +94,10 @@ int wxDirDialog::ShowModal(void) */ // Fill in the BROWSEINFO structure. - wxWX2MBbuf message = m_message.mb_str(); bi.hwndOwner = hWnd; bi.pidlRoot = NULL; // pidlPrograms; bi.pszDisplayName = lpBuffer; - bi.lpszTitle = (const char*)message; // 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;