X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d4194184e83bbccf1a88325cca59d8d0d2faef1..83475efc94333278d232b842420d2391d66304bb:/src/msw/dirdlg.cpp?ds=inline diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index 3c20ff1819..4be95f9efe 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -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;