X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e408bf5257ead0754de5ef37a39867c7536dbe03..763163a80ae0d5a0684633e72f928302578c1214:/src/msw/filedlg.cpp diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index 546b6c7ab0..d1bb415709 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -494,7 +494,7 @@ int wxFileDialog::ShowModal() //=== Setting defaultFileName >>========================================= - wxStrlcpy(fileNameBuffer, m_fileName, WXSIZEOF(fileNameBuffer)); + wxStrlcpy(fileNameBuffer, m_fileName.c_str(), WXSIZEOF(fileNameBuffer)); of.lpstrFile = fileNameBuffer; // holds returned filename of.nMaxFile = wxMAXPATH;