summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index d038464416..20b7dc5b2b 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4726,7 +4726,8 @@ rb_w32_wreadlink(const WCHAR *path, WCHAR *buf, size_t bufsize)
&rp, sizeof(rp), &ret, NULL)) {
e = map_errno(GetLastError());
}
- else if (rp.ReparseTag != IO_REPARSE_TAG_SYMLINK){
+ else if (rp.ReparseTag != IO_REPARSE_TAG_SYMLINK &&
+ rp.ReparseTag != IO_REPARSE_TAG_MOUNT_POINT){
e = EINVAL;
}
else {