Changeset 1221 for trunk/src


Ignore:
Timestamp:
Oct 9, 1999, 3:33:25 PM (26 years ago)
Author:
sandervl
Message:

Exception changes + fixes; don't switch FS selectors for Odin32 OS/2 apps

Location:
trunk/src/kernel32
Files:
4 edited

Legend:

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

    r1200 r1221  
    1 /* $Id: exceptions.cpp,v 1.21 1999-10-08 19:47:26 sandervl Exp $ */
     1/* $Id: exceptions.cpp,v 1.22 1999-10-09 13:33:23 sandervl Exp $ */
    22
    33/*
     
    277277  int                 rc;
    278278
    279   dprintf(("KERNEL32: RtlUnwind\n"));
     279  dprintf(("KERNEL32: RtlUnwind %x %x\n", pEndFrame, pRecord));
    280280
    281281  memset(&context, 0, sizeof(context));
  • trunk/src/kernel32/oslibmisc.cpp

    r956 r1221  
    1 /* $Id: oslibmisc.cpp,v 1.2 1999-09-15 23:38:01 sandervl Exp $ */
     1/* $Id: oslibmisc.cpp,v 1.3 1999-10-09 13:33:24 sandervl Exp $ */
    22
    33/*
     
    226226   {
    227227        case TIB_STACKTOP:
     228                return (ULONG)ptib->tib_pstacklimit;
     229        case TIB_STACKLOW:
    228230                return (ULONG)ptib->tib_pstack;
    229         case TIB_STACKLOW:
    230                 return (ULONG)ptib->tib_pstacklimit;
    231231        default:
    232232                return 0;
  • trunk/src/kernel32/winexelx.cpp

    r978 r1221  
    1 /* $Id: winexelx.cpp,v 1.2 1999-09-18 17:47:10 sandervl Exp $ */
     1/* $Id: winexelx.cpp,v 1.3 1999-10-09 13:33:24 sandervl Exp $ */
    22
    33/*
     
    4141 PPIB   ppib;
    4242 PTIB   ptib;
     43
     44  //Signal to TEB management that we're a real OS/2 app and don't
     45  //require setting FS to our special win32 selector
     46  fIsOS2Image = TRUE;
    4347
    4448  if(WinExe != NULL) //should never happen
  • trunk/src/kernel32/wprocess.cpp

    r1134 r1221  
    1 /* $Id: wprocess.cpp,v 1.35 1999-10-04 22:25:01 phaller Exp $ */
     1/* $Id: wprocess.cpp,v 1.36 1999-10-09 13:33:25 sandervl Exp $ */
    22
    33/*
     
    66 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
    77 *
     8 *
     9 * NOTE: Even though Odin32 OS/2 apps don't switch FS selectors,
     10 *       we still allocate a TEB to store misc information.
    811 *
    912 * Project Odin Software License can be found in LICENSE.TXT
     
    4245//******************************************************************************
    4346BOOL      fFreeLibrary = FALSE;
    44 
     47BOOL      fIsOS2Image = FALSE;  //TRUE  -> Odin32 OS/2 application (not converted!)
     48                                //FALSE -> otherwise
    4549//Process database
    4650PDB       ProcessPDB = {0};
     
    179183 THDB  *thdb;
    180184
     185   //If we're running an Odin32 OS/2 application (not converted!), then we
     186   //we don't switch FS selectors
     187   if(fIsOS2Image) {
     188        return;
     189   }
     190
    181191   winteb = (TEB *)*TIBFlatPtr;
    182192   if(winteb) {
     
    195205 TEB   *winteb;
    196206 THDB  *thdb;
     207
     208   //If we're running an Odin32 OS/2 application (not converted!), then we
     209   //we don't switch FS selectors
     210   if(fIsOS2Image) {
     211        return;
     212   }
    197213
    198214   winteb = (TEB *)*TIBFlatPtr;
     
    657673
    658674  dprintf(("GetVersionStruct"));
    659   if(WinExe && !strcmp(WinExe->getFullPath(), modname)) {
     675  if(WinExe && !stricmp(WinExe->getFullPath(), modname)) {
    660676        winimage = (Win32ImageBase *)WinExe;
    661677  }
     
    677693  dprintf(("GetVersionSize of %s\n", modname));
    678694
    679   if(WinExe && !strcmp(WinExe->getFullPath(), modname)) {
     695  if(WinExe && !stricmp(WinExe->getFullPath(), modname)) {
    680696        winimage = (Win32ImageBase *)WinExe;
    681697  }
Note: See TracChangeset for help on using the changeset viewer.