summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-10-24 11:23:55 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-10-24 11:23:55 +0200
commit11b7f942124006c0a9923c9ebe21e1f1b32bd400 (patch)
treeb30a0940a109b5fd755bd63c197c6f4f9b76d804
parentbb7ad4ed647137404bd17f876b02d0a2fc5fd807 (diff)
downloadcygnal-11b7f942124006c0a9923c9ebe21e1f1b32bd400.tar.gz
cygnal-11b7f942124006c0a9923c9ebe21e1f1b32bd400.tar.bz2
cygnal-11b7f942124006c0a9923c9ebe21e1f1b32bd400.zip
Fix ShellExecuteW comment
ShellExecuteW long path behaviour is now stable: It doesn't work since Windows 8.1. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/path.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 4ffe5f9bd..419f9cfb0 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1704,10 +1704,9 @@ symlink_native (const char *oldpath, path_conv &win32_newpath)
to Win32 paths. */
if (final_oldpath->Buffer[0] == L'\\')
{
- /* Workaround Windows 8.1 bug. On Windows 8.1, the ShellExecuteW
- function does not handle the long path prefix correctly for symlink
- targets. Thus, we create simple short paths < MAX_PATH without
- long path prefix. */
+ /* Starting with Windows 8.1, the ShellExecuteW function does not
+ handle the long path prefix correctly for symlink targets. Thus,
+ we create simple short paths < MAX_PATH without long path prefix. */
if (RtlEqualUnicodePathPrefix (final_oldpath, &ro_u_uncp, TRUE)
&& final_oldpath->Length < (MAX_PATH + 6) * sizeof (WCHAR))
{