]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/filedlg.cpp
added wxUniChar::AsUTF8() for easy conversion in UTF8 build
[wxWidgets.git] / src / msw / filedlg.cpp
index a8393959a20a4f5bb55a494fc93db559a8cc1eb5..e1c40bf3a5209635d077967eccd08ea8851c48d7 100644 (file)
@@ -391,7 +391,7 @@ int wxFileDialog::ShowModal()
         }
     }
 
-    of.lpstrFilter  = (LPTSTR)filterBuffer.c_str();
+    of.lpstrFilter  = (LPTSTR)filterBuffer.wx_str();
     of.nFilterIndex = m_filterIndex + 1;
 
     //=== Setting defaultFileName >>=========================================