summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorluislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-17 17:53:21 +0000
committerluislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-17 17:53:21 +0000
commit55915036a6d1edebe739737bb7d910a8851e21e5 (patch)
tree4fd4d7cc5767a9157a4af05ff5152cdf02c49b19 /win32
parent62f7e108e2e91bfb2c806f1badcdea59f7c8fbfe (diff)
Swap logic around wildcard character detection
* win32/file.c (replace_to_long_name): correct logic around wildcard characters detection and ensure wide-chars are used as pattern. [ruby-core:49451] [Bug #7374] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/file.c b/win32/file.c
index 5550a5751d..dfe122480f 100644
--- a/win32/file.c
+++ b/win32/file.c
@@ -277,7 +277,7 @@ replace_to_long_name(wchar_t **wfullpath, size_t size, int heap)
}
/* skip long name conversion if path contains wildcard characters */
- if (!wcspbrk(pos, "*?")) {
+ if (wcspbrk(pos, L"*?")) {
return size;
}