Changeset 1335 for trunk/dll/undel.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/undel.c

    r1227 r1335  
    55
    66  Copyright (c) 1993-98 M. Kimes
    7   Copyright (c) 2004, 2006 Steven H. Levine
     7  Copyright (c) 2004, 2008 Steven H. Levine
    88
    99  01 Aug 04 SHL Rework lstrip/rstrip usage
     
    1616  29 Feb 08 GKY Use xfree where appropriate
    1717  16 JUL 08 GKY Use TMP directory for temp files
     18  10 Dec 08 SHL Integrate exception handler support
    1819
    1920***********************************************************************/
     
    2223#include <string.h>
    2324#include <ctype.h>
    24 #include <process.h>                    // _beginthread
     25// #include <process.h>                 // _beginthread
    2526
    2627#define INCL_DOS
     
    3738#include "errutil.h"                    // Dos_Error...
    3839#include "strutil.h"                    // GetPString
    39 #include "pathutil.h"                   // BldFullPathName
     40#include "pathutil.h"                   // BldFullPathName
    4041#include "walkem.h"                     // FillPathListBox
    4142#include "common.h"                     // DecrThreadUsage, IncrThreadUsage
     
    4748#include "systemf.h"                    // runemf2
    4849#include "fortify.h"
     50#include "excputil.h"                   // xbeginthread
    4951
    5052#pragma data_seg(DATA2)
     
    239241                GetPString(IDS_UNDELETETITLETEXT), toupper(*undelinfo->path));
    240242        WinSetWindowText(hwnd, s);
    241         if (_beginthread(FillUndelListThread, NULL, 65536, (PVOID) undelinfo)
    242             == -1) {
    243           Runtime_Error(pszSrcFile, __LINE__,
    244                         GetPString(IDS_COULDNTSTARTTHREADTEXT));
     243        if (xbeginthread(FillUndelListThread,
     244                         65536,
     245                         undelinfo,
     246                         pszSrcFile,
     247                         __LINE__) == -1)
     248        {
    245249          free(undelinfo);
    246250          listdone = TRUE;
Note: See TracChangeset for help on using the changeset viewer.