aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/mingw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index 112b2a54e..9978baa7a 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -330,6 +330,11 @@ static int has_exec_format(const char *name)
330 unsigned int offset; 330 unsigned int offset;
331 unsigned char buf[1024]; 331 unsigned char buf[1024];
332 332
333 /* special case: skip DLLs, there are thousands of them! */
334 n = strlen(name);
335 if (n > 4 && !strcasecmp(name+n-4, ".dll"))
336 return 0;
337
333 fd = open(name, O_RDONLY); 338 fd = open(name, O_RDONLY);
334 if (fd < 0) 339 if (fd < 0)
335 return 0; 340 return 0;