Commit 5cfcabc3 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Fixed segv when incorrect command line arguments where given.

parent 39454d08
......@@ -401,6 +401,8 @@ int main (int argc, char *argv[])
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 @@ int main (int argc, char *argv[])
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment