Changeset 1341 for trunk/undel.c
- Timestamp:
- Dec 14, 2008, 11:18:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/undel.c
r1216 r1341 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2007 Steven H. Levine9 Copyright (c) 2007, 2008 Steven H. Levine 10 10 11 11 23 Sep 07 SHL Sync with standards 12 12 23 Sep 07 SHL Get rid of statics 13 14 Dec 08 SHL Add exception handler support 13 14 14 15 ***********************************************************************/ … … 17 18 18 19 #define INCL_DOS 20 #define INCL_DOSEXCEPTIONS // XCTP_... 21 #define INCL_DOSERRORS // NO_ERROR 19 22 20 23 #include "dll\fm3dll.h" 21 #include "dll\mainwnd.h" // Data declaration(s)24 #include "dll\mainwnd.h" // FM3ModHandle 22 25 #include "dll\fm3dlg.h" 23 26 #include "dll\undel.h" // UndeleteDlgProc … … 25 28 #include "dll\valid.h" // MakeValidDir 26 29 #include "dll\dirs.h" // save_dir 30 #include "dll\errutil.h" // Error reporting 31 #include "dll\excputil.h" // Exception handlers 32 33 static PSZ pszSrcFile = __FILE__; 27 34 28 35 int main(int argc, char *argv[]) … … 32 39 FILESTATUS3 fs; 33 40 CHAR fullname[CCHMAXPATH]; 34 CHAR *thisarg = NULL; 35 INT x; 41 PSZ thisarg = NULL; 42 UINT x; 43 APIRET regRet; 44 EXCEPTIONREGISTRATIONRECORD regRec = { NULL, NULL }; 36 45 37 46 DosError(FERR_DISABLEHARDERR); 47 48 regRec.ExceptionHandler = HandleException; 49 regRet = DosSetExceptionHandler(®Rec); 50 if (regRet != NO_ERROR) { 51 DbgMsg(pszSrcFile, __LINE__, 52 "DosSetExceptionHandler failed with error %u", regRet); 53 } 54 38 55 for (x = 1; x < argc; x++) { 39 56 if (!strchr("/;,`\'", *argv[x]) && !thisarg) {
Note:
See TracChangeset
for help on using the changeset viewer.