X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5bb596668f594b06c2b56199c5fbd2411eab5ad8..81533a3af6ed598c32a35e1c1c2b60f4908f5541:/src/common/filefn.cpp?ds=sidebyside diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index eb7c74a968..2b3314abce 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1079,7 +1079,7 @@ wxCopyFile (const wxString& file1, const wxString& file2, bool overwrite) wxStructStat fbuf; // get permissions of file1 - if ( wxStat( file1.c_str(), &fbuf) != 0 ) + if ( wxStat( file1, &fbuf) != 0 ) { // the file probably doesn't exist or we haven't the rights to read // from it anyhow