* autoload.cc (wsock_init): Keep lock while modifying return address.

This commit is contained in:
Christopher Faylor 2004-06-22 04:00:16 +00:00
parent 10800ca5f5
commit c0508da25a
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-06-21 Christopher Faylor <cgf@alum.bu.edu>
* autoload.cc (wsock_init): Keep lock while modifying return address.
2004-06-17 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::open): Remove 9x specific code.

View File

@ -278,13 +278,13 @@ wsock_init ()
}
}
InterlockedDecrement (&here);
/* Kludge alert. Redirects the return address to dll_chain. */
__asm__ __volatile__ (" \n\
movl $dll_chain,4(%ebp) \n\
");
InterlockedDecrement (&here);
volatile retchain ret;
/* Set "arguments for dll_chain. */
ret.low = (long) dll_func_load;