]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
fixed centering of top level windows on secondary displays (replaces patch 1267173)
[wxWidgets.git] / src / common / filefn.cpp
index ed9b69b1cd6703381dd20499ccb3b198c7983d14..d1d0efe243e8bb4e44a60de7fc682af365693a04 100644 (file)
@@ -40,7 +40,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#if !defined(__WATCOMC__)
+#if !wxONLY_WATCOM_EARLIER_THAN(1,4)
     #if !(defined(_MSC_VER) && (_MSC_VER > 800))
         #include <errno.h>
     #endif
@@ -242,8 +242,7 @@ bool wxPathList::Member (const wxString& path)
 
 wxString wxPathList::FindValidPath (const wxString& file)
 {
-  if (wxFileExists (wxExpandPath(wxFileFunctionsBuffer, file)))
-    return wxString(wxFileFunctionsBuffer);
+  wxExpandPath(wxFileFunctionsBuffer, file);
 
   wxChar buf[_MAXPATHLEN];
   wxStrcpy(buf, wxFileFunctionsBuffer);