diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-03-07 12:20:00 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-05-12 22:00:25 +0200 |
commit | 88951851169b4c457c2688d9eed5db77ae9e1a78 (patch) | |
tree | c71b3ecd5cd5efca7502b062ad868fbe06433cd5 /winsup | |
parent | 7bed18558d8f01c258b6c00a5083c2d0816724cc (diff) | |
download | newlib-88951851169b4c457c2688d9eed5db77ae9e1a78.zip newlib-88951851169b4c457c2688d9eed5db77ae9e1a78.tar.gz newlib-88951851169b4c457c2688d9eed5db77ae9e1a78.tar.bz2 |
Cygwin: drop system_wow64_directory and related code
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 9 | ||||
-rw-r--r-- | winsup/cygwin/exceptions.cc | 6 | ||||
-rw-r--r-- | winsup/cygwin/globals.cc | 2 |
3 files changed, 0 insertions, 17 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 4a3609d..6ed6e3e 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -732,15 +732,6 @@ init_windows_system_directory () RtlInitCountedUnicodeString (&windows_directory_path, windows_directory_buf, (windows_directory_length + 4) * sizeof (WCHAR)); -#ifdef __i386__ - system_wow64_directory_length = - GetSystemWow64DirectoryW (system_wow64_directory, MAX_PATH); - if (system_wow64_directory_length) - { - system_wow64_directory[system_wow64_directory_length++] = L'\\'; - system_wow64_directory[system_wow64_directory_length] = L'\0'; - } -#endif /* __i386__ */ } } diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index f946bed..f6c3902 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -438,12 +438,6 @@ _cygtls::inside_kernel (CONTEXT *cx) checkdir += 4; res = wcsncasecmp (windows_system_directory, checkdir, windows_system_directory_length) == 0; -#ifdef __i386__ - if (!res && system_wow64_directory_length) - res = wcsncasecmp (system_wow64_directory, checkdir, - system_wow64_directory_length) == 0; - -#endif } sigproc_printf ("pc %p, h %p, inside_kernel %d", cx->_GR(ip), h, res); # undef h diff --git a/winsup/cygwin/globals.cc b/winsup/cygwin/globals.cc index d3a2e11..aad5d42 100644 --- a/winsup/cygwin/globals.cc +++ b/winsup/cygwin/globals.cc @@ -23,8 +23,6 @@ HMODULE NO_COPY hntdll; LONG NO_COPY sigExeced; WCHAR windows_system_directory[MAX_PATH]; UINT windows_system_directory_length; -WCHAR system_wow64_directory[MAX_PATH]; -UINT system_wow64_directory_length; WCHAR windows_directory_buf[MAX_PATH]; PWCHAR windows_directory = windows_directory_buf + 4; UINT windows_directory_length; |