diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-01-16 21:01:06 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-01-16 21:01:06 +0300 |
commit | cbe2437b281270f1647ba63fb16aa4d6ed07298d (patch) | |
tree | 327f0a88867d6cb1affbb1e8fbf0abc673ca8a73 /winsup/cygwin/autoload.cc | |
parent | c4c8d06b1abd8ea46788e4990690c696bf6edf7f (diff) |
* autoload.cc (RtlAnsiStringToUnicodeString): Define.
(RtlOemStringToUnicodeString): Define.
* ntdll.h (struct _RTL_USER_PROCESS_PARAMETERS): Define.
(struct _PEB): Redefine with a bit of content.
(RtlAnsiStringToUnicodeString): Declare.
(RtlOemStringToUnicodeString): Declare.
* path.cc: Include ntdll.h.
(_upp): New global variable pointing to user process parameter block.
(get_user_proc_parms): New static function to retrieve user process
parameter block.
(close_user_proc_parms_cwd_handle): New function to close handle to
current working directory in user process parameter block.
(cwdstuff::init): Drop redundant declaration of dynamically_loaded.
Set current dir only on 9x. Call close_user_proc_parms_cwd_handle
on NT instead.
(cwdstuff::keep_in_sync): Only on 9x.
(cwdstuff::set): Keep behaviour on 9x. On NT write cwd path into user
process parameter block and set cwd handle to NULL. Fix comments to
reflect new behaviour.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 62e2a3b63..4a8d1d1d9 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -409,9 +409,11 @@ LoadDLLfuncNt (NtSetInformationFile, 20, ntdll) LoadDLLfuncNt (NtSetSecurityObject, 12, ntdll) LoadDLLfuncNt (NtUnlockVirtualMemory, 16, ntdll) LoadDLLfuncNt (NtUnmapViewOfSection, 8, ntdll) +LoadDLLfuncNt (RtlAnsiStringToUnicodeString, 12, ntdll) LoadDLLfuncNt (RtlInitUnicodeString, 8, ntdll) LoadDLLfuncNt (RtlIsDosDeviceName_U, 4, ntdll) LoadDLLfuncNt (RtlNtStatusToDosError, 4, ntdll) +LoadDLLfuncNt (RtlOemStringToUnicodeString, 12, ntdll) LoadDLLfuncEx (EnumProcessModules, 16, psapi, 1) LoadDLLfuncEx (GetModuleFileNameExA, 16, psapi, 1) |