Cary Sandvig 25 years ago
parent
commit
aa00622e56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dtool/src/dtoolutil/filename.cxx

+ 1 - 1
dtool/src/dtoolutil/filename.cxx

@@ -719,7 +719,7 @@ is_directory() const {
 ////////////////////////////////////////////////////////////////////
 bool Filename::
 is_executable() const {
-  if (!exists()) {
+  if (exists()) {
 #ifdef WIN32_VC
     // no access() in windows, but to our advantage executables can only
     // end in .exe or .com