Ignore:
Timestamp:
Aug 9, 2000, 8:59:03 PM (25 years ago)
Author:
sandervl
Message:

TLS changes

File:
1 edited

Legend:

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

    r3854 r3975  
    1 /* $Id: wprocess.cpp,v 1.84 2000-07-18 18:37:30 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.85 2000-08-09 18:59:03 sandervl Exp $ */
    22
    33/*
     
    8080TEB *WIN32API GetThreadTEB()
    8181{
    82     if(TIBFlatPtr == NULL)
     82    if(TIBFlatPtr == NULL) {
     83        DebugInt3();
    8384        return 0;
    84 
     85    }
    8586    return (TEB *)*TIBFlatPtr;
    8687}
     
    261262        ProcessPDB.winver          = 0xffff; /* to be determined */
    262263        ProcessPDB.server_pid      = (void *)GetCurrentProcessId();
    263 
    264         GetSystemTime(&ProcessPDB.creationTime);
     264        ProcessPDB.tls_bits[0]     = 0; //all tls slots are free
     265        ProcessPDB.tls_bits[1]     = 0;
     266
     267        GetSystemTime(&ProcessPDB.creationTime) ;
    265268
    266269        /* Initialize the critical section */
Note: See TracChangeset for help on using the changeset viewer.