Ignore:
Timestamp:
Jan 13, 2002, 10:42:43 PM (24 years ago)
Author:
sandervl
Message:

VP: check WinExe in ExitThread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/thread.cpp

    r7768 r7769  
    1 /* $Id: thread.cpp,v 1.40 2002-01-13 14:29:57 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.41 2002-01-13 21:42:43 sandervl Exp $ */
    22
    33/*
     
    200200
    201201  HMSetThreadTerminated(GetCurrentThread());
    202   Win32DllBase::detachThreadFromAllDlls();      //send DLL_THREAD_DETACH message to all dlls
     202  Win32DllBase::detachThreadFromAllDlls();    //send DLL_THREAD_DETACH message to all dlls
    203203  Win32DllBase::tlsDetachThreadFromAllDlls(); //destroy TLS structures of all dlls
    204   WinExe->tlsDetachThread();                    //destroy TLS structure of main exe
     204  if(WinExe)  WinExe->tlsDetachThread();      //destroy TLS structure of main exe
    205205  DestroyTIB();
    206206
Note: See TracChangeset for help on using the changeset viewer.