diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-03-19 12:54:07 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-05-12 22:00:25 +0200 |
commit | ebc3997e0c23239c5f5a9f96e22e51d14b08a3f6 (patch) | |
tree | 55908098de5c87e69467a3a441f07cf5ddc562c7 /winsup/utils/cygpath.cc | |
parent | 24e31ffc8c81aea67a05867f195461c12bd23b54 (diff) | |
download | newlib-github/topic/rip-off-32.zip newlib-github/topic/rip-off-32.tar.gz newlib-github/topic/rip-off-32.tar.bz2 |
Cygwin: utils: drop unnecessary wow64 checksgithub/topic/rip-off-32topic/rip-off-32
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/utils/cygpath.cc')
-rw-r--r-- | winsup/utils/cygpath.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc index 701c349..9423a30 100644 --- a/winsup/utils/cygpath.cc +++ b/winsup/utils/cygpath.cc @@ -536,7 +536,6 @@ do_sysfolders (char option) { WCHAR wbuf[MAX_PATH]; char buf[PATH_MAX]; - BOOL iswow64 = FALSE; wbuf[0] = L'\0'; switch (option) @@ -579,18 +578,6 @@ do_sysfolders (char option) case 'S': GetSystemDirectoryW (wbuf, MAX_PATH); - if (!windows_flag - && IsWow64Process (GetCurrentProcess (), &iswow64) && iswow64) - { - /* When calling NtQueryInformationFile(FileNameInformation) on WOW64, - the returned path will point to SysWOW64. This breaks path - redirection to the network related files under device/etc. This - here is a bad hack to make sure that the conversion will convert - the case *and* stick to System32. */ - PWCHAR last_bs = wcsrchr (wbuf, L'\\'); - if (last_bs) - wcpcpy (last_bs + 1, L"Sysnative"); - } break; case 'W': |