From 6dede16a71e01bab313715b45d5dcd88f23f7d1f Mon Sep 17 00:00:00 2001 From: David Elliott Date: Wed, 13 Feb 2008 20:24:06 +0000 Subject: [PATCH] If aWxString.fn_str() is used as the argument to wxStat then wxStat should not be used at all because wxStat is looking for a wxChar* that it will pass through wxConvFile whereas fn_str() effectively returns a char* suitable for use directly with the real function. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filename.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filename.cpp b/src/common/filename.cpp index b9c420355c..1d46748ba5 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -2282,7 +2282,7 @@ bool wxFileName::GetTimes(wxDateTime *dtAccess, #elif defined(__UNIX_LIKE__) || defined(__WXMAC__) || defined(__OS2__) || (defined(__DOS__) && defined(__WATCOMC__)) // no need to test for IsDir() here wxStructStat stBuf; - if ( wxStat( GetFullPath().fn_str(), &stBuf) == 0 ) + if ( stat( GetFullPath().fn_str(), &stBuf) == 0 ) { if ( dtAccess ) dtAccess->Set(stBuf.st_atime);