Changeset 2535 for trunk/src


Ignore:
Timestamp:
Jan 27, 2000, 10:51:17 PM (26 years ago)
Author:
sandervl
Message:

added fs check export

Location:
trunk/src/kernel32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.DEF

    r2430 r2535  
    1 ; $Id: KERNEL32.DEF,v 1.65 2000-01-13 20:09:09 sandervl Exp $
     1; $Id: KERNEL32.DEF,v 1.66 2000-01-27 21:51:16 sandervl Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    10721072
    10731073    IsExeStarted__Fv     @2001
    1074 
    1075    GetDisplayCodepage__Fv                  @3000
    1076    GetWindowsCodepage__Fv                  @3001
     1074    CheckCurFS           @2002
     1075
     1076    GetDisplayCodepage__Fv                  @3000
     1077    GetWindowsCodepage__Fv                  @3001
     1078
  • trunk/src/kernel32/exceptions.cpp

    r2298 r2535  
    1 /* $Id: exceptions.cpp,v 1.31 2000-01-02 22:09:01 sandervl Exp $ */
     1/* $Id: exceptions.cpp,v 1.32 2000-01-27 21:51:16 sandervl Exp $ */
    22
    33/*
     
    10771077 PEXCEPTIONREGISTRATIONRECORD pExceptRec = (PEXCEPTIONREGISTRATIONRECORD)exceptframe;
    10781078
    1079   pExceptRec->prev_structure   = (PEXCEPTIONREGISTRATIONRECORD)-1;
     1079  pExceptRec->prev_structure   = (PEXCEPTIONREGISTRATIONRECORD)0;
    10801080  pExceptRec->ExceptionHandler = OS2ExceptionHandler;
    10811081
     
    11111111}
    11121112
     1113int _System CheckCurFS()
     1114{
     1115 USHORT sel = RestoreOS2FS();
     1116 PEXCEPTIONREGISTRATIONRECORD pExceptRec;
     1117
     1118    if(sel == 0x150b) {
     1119        SetFS(sel);
     1120        return FALSE;
     1121    }
     1122    pExceptRec = (PEXCEPTIONREGISTRATIONRECORD)QueryExceptionChain();
     1123    if(pExceptRec->ExceptionHandler != OS2ExceptionHandler) {
     1124        SetFS(sel);
     1125        return FALSE;
     1126    }
     1127    SetFS(sel);
     1128    return TRUE;
     1129}
     1130
    11131131/*****************************************************************************
    11141132 * Name      : void ReplaceExceptionHandler
  • trunk/src/kernel32/oslibdos.cpp

    r2493 r2535  
    1 /* $Id: oslibdos.cpp,v 1.16 2000-01-21 22:38:53 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.17 2000-01-27 21:51:17 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    377377  case OSLIB_SEARCHENV:
    378378  {
    379         char *env = getenv(path);
    380         if(env == NULL)
    381                 return 0;
    382 
    383         while(*env != '=') env++;
    384         env++;
    385         while(*env == ' ') env++;
    386         if(DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT, env,
     379        if(DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT, path,
    387380                         name, full_name, length_fullname) != 0) {
    388381                return 0;
Note: See TracChangeset for help on using the changeset viewer.