]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dlmsw.cpp
don't crash in dtor if the dialog had never been shown (patch 1723848)
[wxWidgets.git] / src / msw / dlmsw.cpp
index 923a2b5144bbb94745b3754854853f0fb8bed659..a0e6ab8e55f3e1f06742fefebb8e6b9903780eb7 100644 (file)
@@ -191,7 +191,7 @@ wxString wxVersionDLL::GetFileVersion(const wxString& filename) const
     wxString ver;
     if ( m_dll.IsLoaded() )
     {
-        wxChar *pc = wx_const_cast(wxChar *, filename.c_str());
+        wxChar *pc = wx_const_cast(wxChar *, filename.wx_str());
 
         DWORD dummy;
         DWORD sizeVerInfo = m_pfnGetFileVersionInfoSize(pc, &dummy);