Skip to content
Snippets Groups Projects
Commit 5cfcabc3 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard
Browse files

Fixed segv when incorrect command line arguments where given.

parent 39454d08
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment