]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/dirmac.cpp
Applied patch [ 668155 ] Refresh problem when msgbox is shown
[wxWidgets.git] / src / mac / dirmac.cpp
index 17d9397abd71010a6f95ffbabea728f1bb13f06e..0f250ccd5ec17ed9f1e2fa38afb3fbfdf57aec91 100644 (file)
@@ -121,7 +121,7 @@ wxDirData::wxDirData(const wxString& dirname)
     FSRef theRef;
 
     // get the FSRef associated with the POSIX path
-    err = FSPathMakeRef((const UInt8 *) m_dirname, &theRef, NULL);
+    err = FSPathMakeRef((const UInt8 *) m_dirname.c_str(), &theRef, NULL);
     FSGetVRefNum(&theRef, &(m_CPB.hFileInfo.ioVRefNum));
     
     err = FSGetNodeID( &theRef , &m_dirId , &m_isDir ) ;