this patch gets rid of some segv when incomplete arguments were passed on command line
Name: wd_segv ChangeLog: fixed segv when incorrect command line arguments where given License: X11 GenDate: 2002/10/06 19:21:19 UTC ModifiedFiles: tools/winedump/main.c AddedFiles: =================================================================== RCS file: /home/cvs/cvsroot/wine/wine/tools/winedump/main.c,v retrieving revision 1.11 diff -u -u -r1.11 main.c --- tools/winedump/main.c 17 Sep 2002 18:30:38 -0000 1.11 +++ tools/winedump/main.c 18 Sep 2002 18:43:01 -0000 @@ -401,6 +401,8 @@ break; case SPEC: + if (globals.input_name == NULL) + fatal("No file name has been given\n"); set_module_name(1); dll_open (globals.input_name); @@ -453,6 +455,8 @@ do_usage(); break; case DUMP: + if (globals.input_name == NULL) + fatal("No file name has been given\n"); set_module_name(0); dump_file(globals.input_name); break;