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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index fb654d0f9..b258ac9b6 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -240,6 +240,12 @@ class path_conv
PUNICODE_STRING get_nt_native_path ();
POBJECT_ATTRIBUTES get_object_attr (OBJECT_ATTRIBUTES &attr,
SECURITY_ATTRIBUTES &sa);
+ inline size_t get_wide_win32_path_len ()
+ {
+ get_nt_native_path ();
+ return uni_path.Length / sizeof (WCHAR);
+ }
+
PWCHAR get_wide_win32_path (PWCHAR wc);
operator DWORD &() {return fileattr;}
operator int () {return fileattr; }