From 71d8f118da24bb5a31f406e5fba222a324913b05 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 28 Aug 2010 11:22:37 +0000 Subject: * loadlib.h: New header implementing safe LoadLibrary calls. Include throughout files using LoadLibrary function. * cygcheck.cc (dump_sysinfo): Retrieve kernel32.dll handle via GetModuleHandle, rather than using LoadLibrary. * cygpath.cc (get_long_name): Ditto. (do_sysfolders): Append .dll suffix in LoadLibrary call. * ldh.cc (WinMain): Use LoadLibraryExW with DONT_RESOLVE_DLL_REFERENCES to avoid loading malicious library code. * locale.cc (print_locale_with_codeset): Change way to retrieve kernel32.dll path. --- winsup/utils/strace.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/utils/strace.cc') diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 607137e11..2eb3b82db 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -26,6 +26,7 @@ details. */ #include "cygwin/include/sys/cygwin.h" #include "path.h" #undef cygwin_internal +#include "loadlib.h" /* we *know* we're being built with GCC */ #define alloca __builtin_alloca -- cgit v1.2.3