diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-04-03 15:28:03 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-04-03 15:28:03 +0000 |
commit | ba047ace145fdcd203878cc32a88aba92a96e78c (patch) | |
tree | 8270591b8b54f89c55e762b6bfe201e08509668a /winsup/cygwin/init.cc | |
parent | f47b47fb1841525a502f926cf2b673a9ab45129f (diff) | |
download | cygnal-ba047ace145fdcd203878cc32a88aba92a96e78c.tar.gz cygnal-ba047ace145fdcd203878cc32a88aba92a96e78c.tar.bz2 cygnal-ba047ace145fdcd203878cc32a88aba92a96e78c.zip |
Cleanup.
* exceptions.cc (windows_system_directory): Make static. Convert to
WCHAR.
(_cygtls::inside_kernel): Accommodate above change. Check module
path name for leading \\?\ and skip, if so.
(try_to_debug): Call GetEnvironmentStringsW and convert evaluation to
WCHAR to avoid truncated environment problem.
(has_visible_window_station): Call GetUserObjectInformationW.
(events_init): Accommodate above conversion of windows_system_directory.
* init.cc (respawn_wow64_process): Use WCHAR functions to start new
process.
* net.cc (__dup_ent): Drop Windows 9x consideration.
(load_ipv6_funcs): Use WCHAR functions to load IPv6 libs.
* syscalls.cc (syscalls.cc): Remove call to GetDiskFreeSpace.
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r-- | winsup/cygwin/init.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index 08deb5635..88c616f1a 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -97,11 +97,11 @@ respawn_wow64_process () if (!is_wow64_proc) { PROCESS_INFORMATION pi; - STARTUPINFO si; + STARTUPINFOW si; DWORD ret = 0; - GetStartupInfo (&si); - if (!CreateProcessA (NULL, GetCommandLineA (), NULL, NULL, TRUE, + GetStartupInfoW (&si); + if (!CreateProcessW (NULL, GetCommandLineW (), NULL, NULL, TRUE, CREATE_DEFAULT_ERROR_MODE | GetPriorityClass (GetCurrentProcess ()), NULL, NULL, &si, &pi)) |