Ignore:
Timestamp:
Aug 22, 1999, 1:11:11 PM (26 years ago)
Author:
sandervl
Message:

Exception handler changes

File:
1 edited

Legend:

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

    r532 r617  
    1 /* $Id: thread.cpp,v 1.10 1999-08-17 17:04:52 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.11 1999-08-22 11:11:10 sandervl Exp $ */
    22
    33/*
     
    1313#include <stdarg.h>
    1414#include "thread.h"
    15 #include "except.h"
     15#include "exceptutil.h"
    1616#include <misc.h>
    1717#include <wprocess.h>
    1818#include <windll.h>
    1919#include <winexe.h>
     20#include <except.h>
    2021
    2122static DWORD OPEN32API Win32ThreadProc(LPVOID lpData);
     
    154155static DWORD OPEN32API Win32ThreadProc(LPVOID lpData)
    155156{
     157 EXCEPTION_FRAME exceptFrame;
    156158 Win32Thread     *me = (Win32Thread *)lpData;
    157159 WIN32THREADPROC  winthread = me->pCallback;
     
    179181  Win32Dll::attachThreadToAllDlls();      //send DLL_THREAD_ATTACH message to all dlls
    180182
     183  //Note: The Win32 exception structure references by FS:[0] is the same
     184  //      in OS/2
     185  OS2SetExceptionHandler((void *)&exceptFrame);
    181186  rc = winthread(userdata);
     187  OS2UnsetExceptionHandler((void *)&exceptFrame);
    182188
    183189  Win32Dll::detachThreadFromAllDlls();  //send DLL_THREAD_DETACH message to all dlls
Note: See TracChangeset for help on using the changeset viewer.