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/windllbase.cpp

    r6249 r7811  
    1 /* $Id: windllbase.cpp,v 1.27 2001-07-08 11:02:10 sandervl Exp $ */
     1/* $Id: windllbase.cpp,v 1.28 2002-02-06 16:33:38 sandervl Exp $ */
    22
    33/*
     
    407407    if(fSetExceptionHandler) {
    408408        OS2SetExceptionHandler((void *)&exceptFrame);
    409         sel = SetWin32TIB();
     409        sel = SetWin32TIB(isPEImage() ? TIB_SWITCH_FORCE_WIN32 : TIB_SWITCH_DEFAULT);
    410410    }
    411411
     
    482482
    483483    fUnloaded = TRUE;
    484     sel = SetWin32TIB();
     484    sel = SetWin32TIB(isPEImage() ? TIB_SWITCH_FORCE_WIN32 : TIB_SWITCH_DEFAULT);
    485485
    486486    // @@@PH 2000/06/13 lpvReserved, Starcraft STORM.DLL
     
    497497    rc = dllEntryPoint(hinstance, DLL_PROCESS_DETACH, lpvReserved);
    498498
    499     SetFS(sel);
     499    SetFS(sel);           //restore FS
    500500    tlsDetachThread();    //destroy TLS (main thread)
    501501    tlsDelete();
Note: See TracChangeset for help on using the changeset viewer.