diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-08-28 12:51:21 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-08-28 12:51:21 +0400 |
commit | 893a8b78fca52a5474fbca9a0b881b622afc5044 (patch) | |
tree | 28ecddfa7addcab1469a9ae6d6694fdb12dda97d /winsup/cygwin/globals.cc | |
parent | 657f0e4a1417f0ce12b6d017c700ff35b1fcba80 (diff) |
* 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/globals.cc')
-rw-r--r-- | winsup/cygwin/globals.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/globals.cc b/winsup/cygwin/globals.cc index c517a6233..b6d03e147 100644 --- a/winsup/cygwin/globals.cc +++ b/winsup/cygwin/globals.cc @@ -24,6 +24,8 @@ HANDLE NO_COPY hProcImpToken; HMODULE NO_COPY cygwin_hmodule; HANDLE hExeced; int NO_COPY sigExeced; +WCHAR NO_COPY windows_system_directory[MAX_PATH]; +UINT NO_COPY windows_system_directory_length; /* program exit the program */ |