Changeset 1335 for trunk/dll/viewinf.c


Ignore:
Timestamp:
Dec 13, 2008, 12:49:02 AM (17 years ago)
Author:
Steven Levine
Message:

Ticket 26: Add exception handlers to all threads using xbeginthread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/viewinf.c

    r1228 r1335  
    1515  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
    1616  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use BldFullPathName
     17  10 Dec 08 SHL Integrate exception handler support
    1718
    1819***********************************************************************/
     
    2324#include <string.h>
    2425#include <share.h>
    25 #include <process.h>                    // _beginthread
     26// #include <process.h>                    // _beginthread
    2627
    2728#define INCL_DOS
     
    4748#include "wrappers.h"                   // xfopen
    4849#include "fortify.h"
     50#include "excputil.h"                   // xbeginthread
    4951
    5052#pragma data_seg(DATA1)
     
    283285        if (help)
    284286          d->help = 1;
    285         if (_beginthread(FillListboxThread, NULL, 65536, (PVOID) d) == -1) {
    286           Runtime_Error(pszSrcFile, __LINE__,
    287                         GetPString(IDS_COULDNTSTARTTHREADTEXT));
     287        if (xbeginthread(FillListboxThread,
     288                         65536,
     289                         d,
     290                         pszSrcFile,
     291                         __LINE__) == -1)
     292        {
    288293          free(d);
    289294          WinDismissDlg(hwnd, 0);
Note: See TracChangeset for help on using the changeset viewer.