diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/mingw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index 10169266d..162fae45b 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -332,8 +332,7 @@ static int has_exec_format(const char *name) | |||
332 | unsigned char buf[1024]; | 332 | unsigned char buf[1024]; |
333 | 333 | ||
334 | /* special case: skip DLLs, there are thousands of them! */ | 334 | /* special case: skip DLLs, there are thousands of them! */ |
335 | n = strlen(name); | 335 | if (is_suffixed_with_case(name, ".dll")) |
336 | if (n > 4 && !strcasecmp(name+n-4, ".dll")) | ||
337 | return 0; | 336 | return 0; |
338 | 337 | ||
339 | n = open_read_close(name, buf, sizeof(buf)); | 338 | n = open_read_close(name, buf, sizeof(buf)); |