diff options
-rw-r--r-- | winsup/cygwin/path.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 419f9cfb0..aaf192820 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -3966,12 +3966,15 @@ fcwd_access_t::SetDirHandleFromBufferPointer (PWCHAR buf_p, HANDLE dir) default: f_cwd = (fcwd_access_t *) ((PBYTE) buf_p - __builtin_offsetof (FAST_CWD_OLD, Buffer)); + break; case FCWD_W7: f_cwd = (fcwd_access_t *) ((PBYTE) buf_p - __builtin_offsetof (FAST_CWD_7, Buffer)); + break; case FCWD_W8: f_cwd = (fcwd_access_t *) ((PBYTE) buf_p - __builtin_offsetof (FAST_CWD_8, Buffer)); + break; } f_cwd->DirectoryHandle () = dir; } |