]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Fix testing for existence of paths with trailing separators in wxMSW.
[wxWidgets.git] / src / common / filename.cpp
index 9d712ce6708cd3c82257afb8ece7a04f06eedb28..f4d4beb7ad8f4a490310c35df5d2495a1645ce48 100644 (file)
@@ -642,7 +642,7 @@ bool wxFileSystemObjectExists(const wxString& path, int flags)
 
     // we must use GetFileAttributes() instead of the ANSI C functions because
     // it can cope with network (UNC) paths unlike them
-    DWORD ret = ::GetFileAttributes(path.t_str());
+    DWORD ret = ::GetFileAttributes(strPath.t_str());
 
     if ( ret == INVALID_FILE_ATTRIBUTES )
         return false;