- Timestamp:
- Feb 13, 2003, 4:30:53 PM (23 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/KERNEL32.DEF
r9708 r9800 1 ; $Id: KERNEL32.DEF,v 1.1 49 2003-01-22 17:06:18sandervl Exp $1 ; $Id: KERNEL32.DEF,v 1.150 2003-02-13 15:30:51 sandervl Exp $ 2 2 3 3 ;Basis is Windows95 KERNEL32 … … 1197 1197 _RegisterCustomDriver@36 @2015 NONAME 1198 1198 1199 strcmpiW @2020 1199 strcmpiW @2020 NONAME 1200 1200 strstrW @2021 NONAME 1201 1201 strncmpiW @2022 NONAME … … 1213 1213 ; override export 1214 1214 _ODIN_SetProcAddress@12 @2101 NONAME 1215 1216 ; override TIB switching 1217 _ODIN_SetTIBSwitch@4 @2102 NONAME 1215 1218 1216 1219 GetDisplayCodepage @3000 NONAME -
trunk/src/kernel32/dbglog.cpp
r9708 r9800 1 /* $Id: dbglog.cpp,v 1. 5 2003-01-22 17:06:18sandervl Exp $ */1 /* $Id: dbglog.cpp,v 1.6 2003-02-13 15:30:52 sandervl Exp $ */ 2 2 3 3 /* … … 309 309 #ifdef WIN32_IP_LOGGING 310 310 char *logserver = getenv("WIN32LOG_IPSERVER"); 311 if(logserver) { 311 //testestset 312 if(logserver && loadNr == 1) { 313 //testestset 312 314 sock_init(); 313 315 … … 382 384 383 385 #ifdef LOG_TIME 384 if(sel == 0x150b && !fIsOS2Image)386 if(sel == 0x150b && fSwitchTIBSel) 385 387 fprintf(flog, 386 388 "t%02d (%3d): (%x) (FS=150B) ", … … 395 397 GetTickCount()); 396 398 #else 397 if(sel == 0x150b && !fIsOS2Image)399 if(sel == 0x150b && fSwitchTIBSel) 398 400 fprintf(flog, 399 401 #ifdef SHOW_FPU_CONTROLREG … … 443 445 ulCallDepth = 0; 444 446 #endif 445 if(sel == 0x150b && !fIsOS2Image)447 if(sel == 0x150b && fSwitchTIBSel) 446 448 sprintf(logbuffer, "t%02d (%3d): (FS=150B) ", 447 449 LOWORD(teb->o.odin.threadId), ulCallDepth); -
trunk/src/kernel32/kernel32dbg.def
r9708 r9800 1 ; $Id: kernel32dbg.def,v 1.2 4 2003-01-22 17:06:19sandervl Exp $1 ; $Id: kernel32dbg.def,v 1.25 2003-02-13 15:30:52 sandervl Exp $ 2 2 3 3 ;Basis is Windows95 KERNEL32 … … 1214 1214 _ODIN_SetProcAddress@12 @2101 NONAME 1215 1215 1216 ; override TIB switching 1217 _ODIN_SetTIBSwitch@4 @2102 NONAME 1218 1216 1219 GetDisplayCodepage @3000 NONAME 1217 1220 GetWindowsCodepage @3001 NONAME -
trunk/src/kernel32/winexelx.cpp
r9533 r9800 1 /* $Id: winexelx.cpp,v 1.1 1 2002-12-20 10:38:58sandervl Exp $ */1 /* $Id: winexelx.cpp,v 1.12 2003-02-13 15:30:53 sandervl Exp $ */ 2 2 3 3 /* … … 47 47 //Signal to TEB management that we're a real OS/2 app and don't 48 48 //require setting FS to our special win32 selector 49 fSwitchTIBSel = FALSE; 50 51 //We're an OS/2 app 49 52 fIsOS2Image = TRUE; 50 53 -
trunk/src/kernel32/wprocess.cpp
r9750 r9800 1 /* $Id: wprocess.cpp,v 1.17 8 2003-02-04 13:40:37sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.179 2003-02-13 15:30:53 sandervl Exp $ */ 2 2 3 3 /* … … 66 66 BOOL fIsOS2Image = FALSE; /* TRUE -> Odin32 OS/2 application (not converted!) */ 67 67 /* FALSE -> otherwise */ 68 BOOL fSwitchTIBSel = TRUE; // TRUE -> switch TIB selectors 69 // FALSE -> don't 68 70 BOOL fExitProcess = FALSE; 69 71 … … 426 428 TEB *winteb; 427 429 428 //If we're running an Odin32 OS/2 application (not converted!), then we429 //we don't switch FS selectors430 if( fIsOS2Image) {430 //If we're running an Odin32 OS/2 application (not converted!), then we 431 //we don't switch FS selectors 432 if(!fSwitchTIBSel) { 431 433 return; 432 434 } … … 452 454 //If we're running an Odin32 OS/2 application (not converted!), then we 453 455 //we don't switch FS selectors 454 if( fIsOS2Image&& !fForceSwitch) {456 if(!fSwitchTIBSel && !fForceSwitch) { 455 457 return GetFS(); 456 458 } … … 470 472 471 473 return GetFS(); 474 } 475 //****************************************************************************** 476 // ODIN_SetTIBSwitch: override TIB switching 477 // 478 // Parameters: 479 // BOOL fSwitchTIB 480 // FALSE -> no TIB selector switching 481 // TRUE -> force TIB selector switching 482 // 483 //****************************************************************************** 484 void WIN32API ODIN_SetTIBSwitch(BOOL fSwitchTIB) 485 { 486 dprintf(("ODIN_SetTIBSwitch %d", fSwitchTIB)); 487 fSwitchTIBSel = fSwitchTIB; 488 if(fSwitchTIBSel) { 489 SetWin32TIB(); 490 } 491 else RestoreOS2TIB(); 472 492 } 473 493 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.