summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/autoload.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-03-11 12:22:45 +0100
committerCorinna Vinschen <corinna@vinschen.de>2015-03-11 12:22:45 +0100
commitf085e9d3212360cfbce69a7a42c04ad7999b8cd6 (patch)
treec67eb742cb2933cce45c3ec8418937eafc5436f9 /winsup/cygwin/autoload.cc
parent58c9102ea2f70f1cc1745b8d4d72cb0227df6148 (diff)
downloadcygnal-f085e9d3212360cfbce69a7a42c04ad7999b8cd6.tar.gz
cygnal-f085e9d3212360cfbce69a7a42c04ad7999b8cd6.tar.bz2
cygnal-f085e9d3212360cfbce69a7a42c04ad7999b8cd6.zip
Fix condition in DLL loading loop
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 a4812a678..fd25e1780 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -1,7 +1,7 @@
/* autoload.cc: all dynamic load stuff.
Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
- 2011, 2012, 2013, 2014 Red Hat, Inc.
+ 2011, 2012, 2013, 2014, 2015 Red Hat, Inc.
This file is part of Cygwin.
@@ -429,7 +429,7 @@ std_dll_init ()
for (i = 1; i <= RETRY_COUNT; i++)
{
/* If loading the library succeeds, just leave the loop. */
- if (!dll_load (dll->handle, dll_path))
+ if (dll_load (dll->handle, dll_path))
break;
/* Otherwise check error code returned by LoadLibrary. If the
error code is neither NOACCESS nor DLL_INIT_FAILED, break out