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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.