diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-08-28 11:22:37 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-08-28 11:22:37 +0000 |
commit | 71d8f118da24bb5a31f406e5fba222a324913b05 (patch) | |
tree | 093f51ed610d7333e4a933f68a1ee8900f5438bb /winsup/utils/regtool.cc | |
parent | 893a8b78fca52a5474fbca9a0b881b622afc5044 (diff) | |
download | cygnal-71d8f118da24bb5a31f406e5fba222a324913b05.tar.gz cygnal-71d8f118da24bb5a31f406e5fba222a324913b05.tar.bz2 cygnal-71d8f118da24bb5a31f406e5fba222a324913b05.zip |
* 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.
Diffstat (limited to 'winsup/utils/regtool.cc')
-rw-r--r-- | winsup/utils/regtool.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/utils/regtool.cc b/winsup/utils/regtool.cc index d8a492c37..c51479d60 100644 --- a/winsup/utils/regtool.cc +++ b/winsup/utils/regtool.cc @@ -1,7 +1,7 @@ /* regtool.cc Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, - 2009 Red Hat Inc. + 2009, 2010 Red Hat Inc. This file is part of Cygwin. @@ -19,6 +19,7 @@ details. */ #define WINVER 0x0502 #include <windows.h> #include <sys/cygwin.h> +#include "loadlib.h" #define DEFAULT_KEY_SEPARATOR '\\' |