* init.cc (in_dllentry): Delete.

(dll_entry): Remove assignment to deleted variable.
* winsup.h (in_dllentry): Delete declaration.
* exceptions.cc (inside_kernel): Use another method to see if we are in
dll_entry phase.
This commit is contained in:
Christopher Faylor
2007-07-14 15:58:32 +00:00
parent d409af3661
commit 6f76c68713
5 changed files with 10 additions and 7 deletions

View File

@ -118,15 +118,12 @@ respawn_wow64_process ()
extern void __stdcall dll_crt0_0 ();
HMODULE NO_COPY cygwin_hmodule;
bool NO_COPY in_dllentry;
extern "C" BOOL WINAPI
dll_entry (HANDLE h, DWORD reason, void *static_load)
{
BOOL wow64_test_stack_marker;
in_dllentry = true;
switch (reason)
{
case DLL_PROCESS_ATTACH:
@ -162,6 +159,5 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
break;
}
in_dllentry = false;
return TRUE;
}