summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 5ebd1f5eb..439bfd264 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -282,7 +282,13 @@ class path_conv
path = cstrdup (pc.path);
conv_handle.dup (pc.conv_handle);
normalized_path = cstrdup(pc.normalized_path);
- wide_path = NULL;
+ if (pc.wide_path)
+ {
+ wide_path = cwcsdup (uni_path.Buffer);
+ if (!wide_path)
+ api_fatal ("cwcsdup would have returned NULL");
+ uni_path.Buffer = wide_path;
+ }
return *this;
}
void free_strings ()