diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-12-03 17:13:03 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-12-03 17:13:03 +0300 |
commit | 814066b9120c6884d45665da6ca926e20cbaaf7c (patch) | |
tree | 8818db9a29acbf9f0fb59f27b720b82387ab20d9 /winsup/cygwin/autoload.cc | |
parent | 268e8d00e9c0d44c9863c66c617e4f50d67c55ad (diff) |
* autoload.cc (GetModuleFileNameExW): Replace definition of
GetModuleFileNameExA.
* fhandler_process.cc (format_process_maps): Change modname type to
WCHAR. Set buffer sizes to PATH_MAX. Call GetModuleFileNameExW
instead of GetModuleFileNameExA. Call mount_info::conv_to_posix_path
instead of cygwin_conv_to_full_posix_path. Set posix_modname to
modname if that call fails.
(format_process_stat): Set cmd buffer size to NAME_MAX + 1. Simplify
setting cmd to process name.
(format_process_status): Ditto.
* path.cc (mount_info::conv_to_posix_path): Call sys_wcstombs
correctly.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index c89333401..4838bba09 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -309,7 +309,7 @@ LoadDLLfunc (NetUserGetGroups, 28, netapi32) LoadDLLfunc (NetUserGetInfo, 16, netapi32) LoadDLLfuncEx (EnumProcessModules, 16, psapi, 1) -LoadDLLfuncEx (GetModuleFileNameExA, 16, psapi, 1) +LoadDLLfuncEx (GetModuleFileNameExW, 16, psapi, 1) LoadDLLfuncEx (GetModuleInformation, 16, psapi, 1) LoadDLLfuncEx (GetProcessMemoryInfo, 12, psapi, 1) LoadDLLfuncEx (QueryWorkingSet, 12, psapi, 1) |