Ignore:
Timestamp:
Feb 6, 2002, 5:33:40 PM (24 years ago)
Author:
sandervl
Message:

SetWin32TIB update + force change to win32 FS selector for calling PE image entrypoints

File:
1 edited

Legend:

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

    r6133 r7811  
    1 /* $Id: winexebase.cpp,v 1.18 2001-06-27 19:09:36 sandervl Exp $ */
     1/* $Id: winexebase.cpp,v 1.19 2002-02-06 16:33:38 sandervl Exp $ */
    22
    33/*
     
    108108  //      in OS/2
    109109  OS2SetExceptionHandler((void *)&exceptFrame);
    110   SetWin32TIB();
     110  USHORT sel = SetWin32TIB(isPEImage() ? TIB_SWITCH_FORCE_WIN32 : TIB_SWITCH_DEFAULT);
    111111
    112112  //Set FPU control word to 0x27F (same as in NT)
     
    115115          (void*)entryPoint ));
    116116  rc = CallEntryPoint(entryPoint, NULL);
    117   RestoreOS2TIB();
     117
     118  SetFS(sel);           //restore FS
    118119
    119120  OS2UnsetExceptionHandler((void *)&exceptFrame);
Note: See TracChangeset for help on using the changeset viewer.