mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
62f7e108e2
commit
55915036a6
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue