win32.c: use backslashes
* win32/win32.c (w32_symlink): must use backslashes instead of slashes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8504c817e3
commit
b79d7910f5
@ -4885,6 +4885,7 @@ w32_symlink(UINT cp, const char *src, const char *link)
|
||||
wlink = wsrc + len1;
|
||||
MultiByteToWideChar(cp, 0, src, -1, wsrc, len1);
|
||||
MultiByteToWideChar(cp, 0, link, -1, wlink, len2);
|
||||
translate_wchar(wsrc, L'/', L'\\');
|
||||
|
||||
atts = GetFileAttributesW(wsrc);
|
||||
if (atts != -1 && atts & FILE_ATTRIBUTE_DIRECTORY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user