Changeset 350 for trunk/dll/extract.c
- Timestamp:
- Jul 26, 2006, 9:01:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/extract.c
r186 r350 5 5 6 6 Copyright (c) 1993-98 M. Kimes 7 Copyright (c) 2004, 200 5Steven H. Levine7 Copyright (c) 2004, 2006 Steven H. Levine 8 8 9 9 01 Aug 04 SHL Rework lstrip/rstrip usage 10 10 05 Jun 05 SHL Use QWL_USER 11 17 Jul 06 SHL Use Runtime_Error 11 12 12 13 ***********************************************************************/ … … 14 15 #define INCL_WIN 15 16 #define INCL_DOS 16 17 17 #include <os2.h> 18 18 19 #include <stdlib.h> 19 20 #include <stdio.h> … … 21 22 #include <time.h> 22 23 #include <ctype.h> 24 23 25 #include "fm3dll.h" 24 26 #include "fm3dlg.h" … … 26 28 27 29 #pragma data_seg(DATA1) 30 28 31 #pragma alloc_text(FMEXTRACT,ExtractTextProc,ExtractDlgProc) 29 32 30 31 MRESULT EXPENTRY ExtractTextProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) { 32 33 static PSZ pszSrcFile = __FILE__; 34 35 MRESULT EXPENTRY ExtractTextProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) 36 { 33 37 PFNWP oldproc = (PFNWP)WinQueryWindowPtr(hwnd,0); 34 38 static BOOL emphasized = FALSE; … … 76 80 77 81 78 MRESULT EXPENTRY ExtractDlgProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) {79 82 MRESULT EXPENTRY ExtractDlgProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) 83 { 80 84 EXTRDATA *arcdata = NULL; 81 85 … … 314 318 } 315 319 } 316 DosBeep(50,100); 320 DosBeep(50,100); // Complain a refuse to quit 317 321 break; 318 322 … … 347 351 WinQueryDlgItemText(hwnd,EXT_COMMAND,256,s); 348 352 lstrip(s); 349 if(*s) { 353 if (!*s) 354 Runtime_Error(pszSrcFile, __LINE__, "no command"); 355 else { 350 356 p = strchr(s,' '); 351 if (p)352 *p = 0; 357 if (p) 358 *p = 0; // Drop options 353 359 memset(&ex,0,sizeof(EXECARGS)); 354 360 ex.commandline = s; … … 363 369 MPFROMP(&ex)) && 364 370 *s) 371 { 365 372 runemf2(ex.flags, 366 373 hwnd, … … 369 376 "%s", 370 377 s); 371 } 372 else 373 DosBeep(50,100); 378 } 379 } 374 380 } 375 381 break;
Note:
See TracChangeset
for help on using the changeset viewer.