Cygwin: drop system_wow64_directory and related code
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
ca313dd8f4
commit
24363cffef
|
@ -732,15 +732,6 @@ init_windows_system_directory ()
|
||||||
RtlInitCountedUnicodeString (&windows_directory_path,
|
RtlInitCountedUnicodeString (&windows_directory_path,
|
||||||
windows_directory_buf,
|
windows_directory_buf,
|
||||||
(windows_directory_length + 4) * sizeof (WCHAR));
|
(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__ */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -438,12 +438,6 @@ _cygtls::inside_kernel (CONTEXT *cx)
|
||||||
checkdir += 4;
|
checkdir += 4;
|
||||||
res = wcsncasecmp (windows_system_directory, checkdir,
|
res = wcsncasecmp (windows_system_directory, checkdir,
|
||||||
windows_system_directory_length) == 0;
|
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);
|
sigproc_printf ("pc %p, h %p, inside_kernel %d", cx->_GR(ip), h, res);
|
||||||
# undef h
|
# undef h
|
||||||
|
|
|
@ -23,8 +23,6 @@ HMODULE NO_COPY hntdll;
|
||||||
LONG NO_COPY sigExeced;
|
LONG NO_COPY sigExeced;
|
||||||
WCHAR windows_system_directory[MAX_PATH];
|
WCHAR windows_system_directory[MAX_PATH];
|
||||||
UINT windows_system_directory_length;
|
UINT windows_system_directory_length;
|
||||||
WCHAR system_wow64_directory[MAX_PATH];
|
|
||||||
UINT system_wow64_directory_length;
|
|
||||||
WCHAR windows_directory_buf[MAX_PATH];
|
WCHAR windows_directory_buf[MAX_PATH];
|
||||||
PWCHAR windows_directory = windows_directory_buf + 4;
|
PWCHAR windows_directory = windows_directory_buf + 4;
|
||||||
UINT windows_directory_length;
|
UINT windows_directory_length;
|
||||||
|
|
Loading…
Reference in New Issue