Ignore:
Timestamp:
Jun 11, 2002, 6:36:54 PM (23 years ago)
Author:
sandervl
Message:

thread linking + create TEB before thread creation

File:
1 edited

Legend:

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

    r8427 r8648  
    1 /* $Id: initkernel32.cpp,v 1.18 2002-05-16 12:16:00 sandervl Exp $
     1/* $Id: initkernel32.cpp,v 1.19 2002-06-11 16:36:53 sandervl Exp $
    22 *
    33 * KERNEL32 DLL entry point
     
    175175            //(std handles can be used in win32 dll initialization routines
    176176            HMInitialize();             /* store standard handles within HandleManager */
    177             InitDirectories();      //Must be done before InitializeTIB (which loads NTDLL -> USER32)
    178             InitializeTIB(TRUE);        //Must be done after HMInitialize!
     177            InitDirectories();          //Must be done before InitializeTIB (which loads NTDLL -> USER32)
     178            InitializeMainThread();     //Must be done after HMInitialize!
    179179            RegisterDevices();
    180180            Win32DllBase::setDefaultRenaming();
     
    234234    OSLibLVMExit();
    235235
    236     DestroyTIB();
     236    TEB *teb = GetThreadTEB();
     237    if(teb) DestroyTEB(teb);
    237238    DestroySharedHeap();
    238239    DestroyCodeHeap();
Note: See TracChangeset for help on using the changeset viewer.