1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* expand tabs. [ci skip]

This commit is contained in:
git 2019-08-19 14:34:29 +09:00
parent 574a9edfb3
commit 1f3f50fb5e

View file

@ -5207,12 +5207,12 @@ w32_symlink(UINT cp, const char *src, const char *link)
}
if (!*link) {
errno = ENOENT;
return -1;
errno = ENOENT;
return -1;
}
if (!*src) {
errno = EINVAL;
return -1;
errno = EINVAL;
return -1;
}
len1 = MultiByteToWideChar(cp, 0, src, -1, NULL, 0);
len2 = MultiByteToWideChar(cp, 0, link, -1, NULL, 0);
@ -5227,12 +5227,12 @@ w32_symlink(UINT cp, const char *src, const char *link)
flag = SYMBOLIC_LINK_FLAG_DIRECTORY;
ret = create_symbolic_link(wlink, wsrc, flag |= create_flag);
if (!ret &&
(e = GetLastError()) == ERROR_INVALID_PARAMETER &&
(flag & SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE)) {
create_flag = 0;
flag &= ~SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE;
ret = create_symbolic_link(wlink, wsrc, flag);
if (!ret) e = GetLastError();
(e = GetLastError()) == ERROR_INVALID_PARAMETER &&
(flag & SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE)) {
create_flag = 0;
flag &= ~SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE;
ret = create_symbolic_link(wlink, wsrc, flag);
if (!ret) e = GetLastError();
}
ALLOCV_END(buf);