]> sourceware.org Git - newlib-cygwin.git/commitdiff
Fix condition in DLL loading loop
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 11 Mar 2015 11:22:45 +0000 (12:22 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 11 Mar 2015 11:22:45 +0000 (12:22 +0100)
winsup/cygwin/ChangeLog
winsup/cygwin/autoload.cc

index cd2dbb92f148a1aad2862a825d5f214d132268ec..56af2b899b54a4c9d14821f2b75a40a57da41bf0 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-11  Corinna Vinschen  <corinna@vinschen.de>
+
+       * autoload.cc (std_dll_init): Fix condition for breaking from DLL
+       loading loop.
+
 2015-03-10  Yaakov Selkowitz  <yselkowitz@cygwin.com>
 
        * include/stdint.h: Fix __x86_64__ conditional.
index a4812a678b77dfbd2ad3ebf8fba54dae03ed59c5..fd25e17805dfb78d5ae06980c3668c18ee69506f 100644 (file)
@@ -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
This page took 0.031614 seconds and 5 git commands to generate.