Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-03-02 01:36:19 +0300
committerChristopher Faylor <me@cgf.cx>2011-03-02 01:36:19 +0300
commit7a3190f081175cc5cb5fda60ce20a06c75ffd28d (patch)
tree0a993c6c92b439138565065865d94ceb4e10c5c0 /winsup/cygwin/autoload.cc
parent96ef911a49faacc57286876114b5c630158ceae2 (diff)
* autoload.cc (dll_load): Avoid in_forkee test since this apparently fails even
when not forked.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r--winsup/cygwin/autoload.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index 8b20fea2b..f959edd6b 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -216,8 +216,8 @@ static __inline bool
dll_load (HANDLE& handle, WCHAR *name)
{
HANDLE h = LoadLibraryW (name);
- if (!h && in_forkee && handle && GetLastError () == ERROR_INVALID_ADDRESS
- && wincap.use_dont_resolve_hack ())
+ if (!h && handle && wincap.use_dont_resolve_hack ()
+ && GetLastError () == ERROR_INVALID_ADDRESS)
h = LoadLibraryExW (name, NULL, DONT_RESOLVE_DLL_REFERENCES);
if (!h)
return false;