* winsup.h (cygwin_hmodule): Declare.
* exceptions.cc (inside_kernel): Reverse return values to reflect function name. Return true if we're in cygwin1.dll or if we're executing in dll_entry. (_cygtls::interrupt_now): Reflect reversal of inside_kernel return value. * hookapi.cc (cygwin_hmodule): Remove declaration. * init.cc (dll_entry): Use in_dllentry global to record that we are executing in dllentry.
This commit is contained in:
@ -142,12 +142,14 @@ respawn_wow64_process ()
|
||||
extern void __stdcall dll_crt0_0 ();
|
||||
|
||||
HMODULE NO_COPY cygwin_hmodule;
|
||||
bool in_dllentry;
|
||||
|
||||
extern "C" BOOL WINAPI
|
||||
dll_entry (HANDLE h, DWORD reason, void *static_load)
|
||||
{
|
||||
BOOL wow64_test_stack_marker;
|
||||
// _STRACE_ON;
|
||||
|
||||
in_dllentry = true;
|
||||
|
||||
switch (reason)
|
||||
{
|
||||
@ -182,5 +184,6 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
|
||||
break;
|
||||
}
|
||||
|
||||
in_dllentry = false;
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user