aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/file.c b/win32/file.c
index 1f033c646b..5550a5751d 100644
--- a/win32/file.c
+++ b/win32/file.c
@@ -276,8 +276,8 @@ replace_to_long_name(wchar_t **wfullpath, size_t size, int heap)
return size;
}
- /* skip long name conversion if last character is a wildcard */
- if (pos[size - 1] == L'*') {
+ /* skip long name conversion if path contains wildcard characters */
+ if (!wcspbrk(pos, "*?")) {
return size;
}