- Timestamp:
- 2008-03-06T14:09:51+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/launch4j/head_src/consolehead/consolehead.c
r15024 r15054 29 29 int main(int argc, char* argv[]) 30 30 { 31 32 //added by oran - to store the value of the 'subcommand' to be run 33 char subcom[8] = "run"; 34 31 35 setConsoleFlag(); 32 36 HMODULE hLibrary = NULL; … … 42 46 strcat(cmdLine, "\""); 43 47 } 48 49 if ( _stricmp(argv[i], "-find") == 0 ) { 50 strcpy( subcom, "find" ); 51 } else if ( _stricmp(argv[i], "-compare") == 0 ) { 52 strcpy( subcom, "compare" ); 53 } 54 44 55 if (i < argc - 1) { 45 56 strcat(cmdLine, " "); 46 57 } 47 58 } 48 if (!prepare(hLibrary, cmdLine)) { 59 60 if (!prepare(hLibrary, cmdLine, subcom)) { 49 61 if (hLibrary != NULL) { 50 62 FreeLibrary(hLibrary); … … 53 65 } 54 66 FreeLibrary(hLibrary); 55 56 67 int result = (int) execute(TRUE); 57 68 if (result == -1) {
Note:
See TracChangeset
for help on using the changeset viewer.