summaryrefslogtreecommitdiff
path: root/src/common/pgfnames.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/pgfnames.c')
-rw-r--r--src/common/pgfnames.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/pgfnames.c b/src/common/pgfnames.c
index e612ace7d8e..9a68163dd76 100644
--- a/src/common/pgfnames.c
+++ b/src/common/pgfnames.c
@@ -65,8 +65,8 @@ pgfnames(const char *path)
}
errno = 0;
}
-#ifdef WIN32
+#ifdef WIN32
/*
* This fix is in mingw cvs (runtime/mingwex/dirent.c rev 1.4), but not in
* released version
@@ -74,6 +74,7 @@ pgfnames(const char *path)
if (GetLastError() == ERROR_NO_MORE_FILES)
errno = 0;
#endif
+
if (errno)
{
#ifndef FRONTEND