corrected getting FSRef associated with the POSIX path in wxString

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot 2003-01-06 19:38:18 +00:00
parent 0904e5e12a
commit 7563339557
2 changed files with 2 additions and 2 deletions

View 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 ) ;

View 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 ) ;