summaryrefslogtreecommitdiffhomepage
path: root/src/internal/ptycon_open_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/ptycon_open_impl.c')
-rw-r--r--src/internal/ptycon_open_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/ptycon_open_impl.c b/src/internal/ptycon_open_impl.c
index efda8bc..8ab9d61 100644
--- a/src/internal/ptycon_open_impl.c
+++ b/src/internal/ptycon_open_impl.c
@@ -52,7 +52,7 @@ static int32_t ptyc_open(
/* oa */
oa.len = sizeof(nt_oa);
- oa.root_dir = hat;
+ oa.root_dir = (buffer[0]=='\\') ? 0 : hat;
oa.obj_name = &path;
oa.obj_attr = fprivate ? 0 : NT_OBJ_INHERIT;
oa.sec_desc = 0;