* autoload.cc (wsock_init): Keep lock while modifying return address.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user