diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-08-20 19:41:08 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-08-20 19:41:08 +0400 |
commit | 891b6e885e8ff6692f8be695e830a929b97172ab (patch) | |
tree | 28e894b8a9d27dfbd681424217f31e84b43ea31c /winsup/cygwin/hookapi.cc | |
parent | 876da7fb748d988a367c7957bbb17a0b0733d290 (diff) |
* hookapi.cc (ld_preload): Call LoadLibraryW.
* path.h (path_conv::get_wide_win32_path_len): Define.
Diffstat (limited to 'winsup/cygwin/hookapi.cc')
-rw-r--r-- | winsup/cygwin/hookapi.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/hookapi.cc b/winsup/cygwin/hookapi.cc index 552b8bb86..76271ef83 100644 --- a/winsup/cygwin/hookapi.cc +++ b/winsup/cygwin/hookapi.cc @@ -219,7 +219,8 @@ ld_preload () for (p = strtok_r (s, ":\t\n", &here); p; p = strtok_r (NULL, ":\t\n", &here)) { path_conv lib (p); - if (!LoadLibrary (lib.get_win32 ())) + WCHAR libname[lib.get_wide_win32_path_len () + 1]; + if (!LoadLibraryW (lib.get_wide_win32_path (libname))) { __seterrno (); api_fatal ("error while loading shared libraries: %s: " |