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/mkgroup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/utils/mkgroup.c') diff --git a/winsup/utils/mkgroup.c b/winsup/utils/mkgroup.c index 19b679ee1..12fe7b957 100644 --- a/winsup/utils/mkgroup.c +++ b/winsup/utils/mkgroup.c @@ -1,7 +1,7 @@ /* mkgroup.c: Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, - 2007, 2008, 2009 Red Hat, Inc. + 2007, 2008, 2009, 2010 Red Hat, Inc. This file is part of Cygwin. @@ -28,6 +28,7 @@ #include #include #include +#include "loadlib.h" #define print_win_error(x) _print_win_error(x, __LINE__) -- cgit v1.2.3