summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-26 17:24:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-26 17:24:32 +0000
commitb79d7910f5721b222443464ca576c5774c1a79ef (patch)
tree5d3ffedf03317241a99c4a810e6659ea52ef2221 /win32
parent8504c817e3a1513c428b4dad0f3e3943e5aba0a3 (diff)
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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index c9d3522..38c4a12 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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)