* init.cc (dll_entry): Use better check for determining when to set thread
specific stuff. * syscalls.cc (_unlink): Continue with chmod'ing file even if DELETE_ON_CLOSE succeeds, if file still exists.
This commit is contained in:
@ -26,7 +26,7 @@ WINAPI dll_entry (HANDLE h, DWORD reason, void *static_load)
|
||||
dynamically_loaded = (static_load == NULL);
|
||||
break;
|
||||
case DLL_THREAD_ATTACH:
|
||||
if (user_data->initial_sp)
|
||||
if (user_data->threadinterface)
|
||||
{
|
||||
if ( !TlsSetValue(user_data->threadinterface->reent_index,
|
||||
&user_data->threadinterface->reents))
|
||||
|
Reference in New Issue
Block a user