summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/wcstoull.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-01-21 18:40:30 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-01-21 18:40:30 +0100
commit79b1b77b1fd1fcb036bbb2a9aeb6667f1cdcc1ef (patch)
tree7eca639c017c17499ba9b7dc90566e8c9e080073 /newlib/libc/stdlib/wcstoull.c
parentb5c80f5a59fda4e3890bf3cb515a67f420057e02 (diff)
downloadcygnal-79b1b77b1fd1fcb036bbb2a9aeb6667f1cdcc1ef.tar.gz
cygnal-79b1b77b1fd1fcb036bbb2a9aeb6667f1cdcc1ef.tar.bz2
cygnal-79b1b77b1fd1fcb036bbb2a9aeb6667f1cdcc1ef.zip
cygpath: Avoid returning SysWOW64
On Cygwin 32 running under WOW64: When case-correcting the path fetched with -S, the underlying Windows function fetching the normalized path returns the real path C:\Windows\SysWOW64 instead of the path redirection enabled C:\Windows\System32 path. This breaks using the result of `cygpath -S' to fetch the POSIX path of the network related files under SYSTEMROOT\drivers\etc. This path is in fact under the *real* C:\Windows\System32 and only mapped into the 32 bit C:\Windows\System32 (aka C:\Windows\SysWOW64) via path redirection. Sounds messy? This patch checks if we're running under WOW64. If so, it changes the path returned by GetSystemDirectoryW from "system32" to "Sysnative". This in turn is changed to "System32" by NtQueryInformationFile, so we're back to what we need. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib/wcstoull.c')
0 files changed, 0 insertions, 0 deletions