Changeset 620
- Timestamp:
- Apr 20, 2007, 9:23:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eas.c
r52 r620 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2002 Steven H.Levine9 Copyright (c) 2002-2007 Steven H.Levine 10 10 11 Revisions 16 Oct 02 SHL - Reformat 12 08 Feb 03 SHL - Free list with free() since we don't 13 allocate list contents 11 16 Oct 02 SHL Reformat 12 08 Feb 03 SHL Free list with free() since we don't 13 allocate list contents 14 08 Apr 07 SHL Minor reformat 14 15 15 16 ***********************************************************************/ 16 17 18 17 19 18 #define INCL_DOS … … 43 42 *fullname = 0; 44 43 for(x = 1;x < argc;x++) { 45 if (!strchr("/;,`\'",*argv[x]) && IsFile(argv[x]) != -1) {46 if (DosQueryPathInfo(argv[x],FIL_QUERYFULLNAME,fullname,47 48 44 if (!strchr("/;,`\'",*argv[x]) && IsFile(argv[x]) != -1) { 45 if (DosQueryPathInfo(argv[x],FIL_QUERYFULLNAME,fullname, 46 sizeof(fullname))) 47 strcpy(fullname,argv[x]); 49 48 AddToList(fullname,&list,&numfiles,&numalloc); 50 49 } 51 50 } 52 51 hab = WinInitialize(0); 53 if (hab) {52 if (hab) { 54 53 hmq = WinCreateMsgQueue(hab,384); 55 if (hmq) {56 if (InitFM3DLL(hab,argc,argv)) {57 if(!list) {58 59 60 if(!list || !insert_filename(HWND_DESKTOP,fullname,TRUE,FALSE) ||61 62 63 64 65 66 54 if (hmq) { 55 if (InitFM3DLL(hab,argc,argv)) { 56 if (!list) { 57 strcpy(fullname,"*"); 58 list = malloc(sizeof(CHAR *) * 2); 59 if (!list || !insert_filename(HWND_DESKTOP,fullname,TRUE,FALSE) || 60 !*fullname || *fullname == '*') 61 goto Abort; 62 list[0] = fullname; 63 list[1] = NULL; 64 } 65 WinDlgBox(HWND_DESKTOP, 67 66 HWND_DESKTOP, 68 67 DisplayEAsProc,
Note:
See TracChangeset
for help on using the changeset viewer.