diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-08-28 08:51:21 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-08-28 08:51:21 +0000 |
commit | 893a8b78fca52a5474fbca9a0b881b622afc5044 (patch) | |
tree | 28ecddfa7addcab1469a9ae6d6694fdb12dda97d /winsup/cygwin/exceptions.cc | |
parent | 657f0e4a1417f0ce12b6d017c700ff35b1fcba80 (diff) | |
download | cygnal-893a8b78fca52a5474fbca9a0b881b622afc5044.tar.gz cygnal-893a8b78fca52a5474fbca9a0b881b622afc5044.tar.bz2 cygnal-893a8b78fca52a5474fbca9a0b881b622afc5044.zip |
* autoload.cc (LoadDLLprime): Change dllname storage to string16.
(struct dll_info): Convert name to WCHAR.
(std_dll_init): Load DLLs with full path to windows system directory.
Add hint to Microsoft security advisory.
* dcrt0.cc (init_windows_system_directory): New function.
(dll_crt0_0): Call init_windows_system_directory first.
* exceptions.cc (windows_system_directory): Move to globals.cc.
(windows_system_directory_length): Ditto.
(events_init): Drop code fetching windows_system_directory.
* globals.cc (windows_system_directory): New global variable.
(windows_system_directory_length): Ditto.
* net.cc (load_ipv6_funcs): Use windows_system_directory rather than
GetSystemDirectoryW.
* netdb.cc (open_system_file): Ditto. Simplify debug output.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index e904ff188..db18f7ae4 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -43,8 +43,6 @@ extern void sigdelayed (); extern child_info_spawn *chExeced; static BOOL WINAPI ctrl_c_handler (DWORD); -static WCHAR windows_system_directory[1024]; -static size_t windows_system_directory_length; /* This is set to indicate that we have already exited. */ @@ -1348,19 +1346,6 @@ void events_init () { mask_sync.init ("mask_sync"); - windows_system_directory[0] = L'\0'; - GetSystemDirectoryW (windows_system_directory, sizeof (windows_system_directory) / sizeof (WCHAR) - 2); - PWCHAR end = wcschr (windows_system_directory, L'\0'); - if (end == windows_system_directory) - api_fatal ("can't find windows system directory"); - if (end[-1] != L'\\') - { - *end++ = L'\\'; - *end = L'\0'; - } - windows_system_directory_length = end - windows_system_directory; - debug_printf ("windows_system_directory '%W', windows_system_directory_length %d", - windows_system_directory, windows_system_directory_length); } void |