summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-26 16:01:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-26 16:01:48 +0000
commita25de2c6e122d379cc4f16a499ca4c472b4e688f (patch)
tree2ea83e95eecf87e86c59916713e06b621f325d44 /win32/win32.c
parent499120ad6ebb7a014798e9fe0c260eabf403caf4 (diff)
win32.c: fix return value of reparse_symlink
* win32/win32.c (reparse_symlink): return raw Windows error code since r51676. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index a14cc39..8d1a100 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4735,7 +4735,7 @@ reparse_symlink(const WCHAR *path, rb_w32_reparse_buffer_t *rp, size_t size)
FILE_FLAG_BACKUP_SEMANTICS|FILE_FLAG_OPEN_REPARSE_POINT,
NULL);
if (f == INVALID_HANDLE_VALUE) {
- return map_errno(GetLastError());
+ return GetLastError();
}
if (!device_io_control(f, FSCTL_GET_REPARSE_POINT, NULL, 0,