- Timestamp:
 - Dec 1, 2001, 9:41:38 PM (24 years ago)
 - Location:
 - trunk/src/kernel32
 - Files:
 - 
      
- 2 edited
 
- 
          
  thread.cpp (modified) (3 diffs)
 - 
          
  wprocess.cpp (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/kernel32/thread.cpp
r7509 r7519 1 /* $Id: thread.cpp,v 1.3 6 2001-11-30 19:05:47 phallerExp $ */1 /* $Id: thread.cpp,v 1.37 2001-12-01 20:41:37 sandervl Exp $ */ 2 2 3 3 /* … … 43 43 // This macro is for performance improvement only. 44 44 // DWORD TIBFlatPtr is exported from wprocess.cpp 45 #define GetThreadTEB() ((TEB*)(TIBFlatPtr)) 45 #define GetThreadTEB() (TIBFlatPtr) ? ((TEB *)*TIBFlatPtr) : 0 46 46 47 47 48 //****************************************************************************** … … 51 52 // check cached identifier 52 53 TEB *teb = GetThreadTEB(); 53 if(teb != NULL )54 if(teb != NULL && teb->o.odin.threadId != 0xFFFFFFFF) 54 55 { 55 56 // this is set in InitializeTIB() already.  - 
      
trunk/src/kernel32/wprocess.cpp
r7419 r7519 1 /* $Id: wprocess.cpp,v 1.13 7 2001-11-22 10:41:29 phallerExp $ */1 /* $Id: wprocess.cpp,v 1.138 2001-12-01 20:41:38 sandervl Exp $ */ 2 2 3 3 /* … … 189 189 winteb->o.odin.OrgTIBSel = GetFS(); 190 190 winteb->o.odin.pWsockData = NULL; 191 winteb->o.odin.threadId = 0xFFFFFFFF; 191 192 winteb->o.odin.threadId = GetCurrentThreadId(); 192 193 #ifdef DEBUG  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  