Commit 5d199550 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

tools: Print the correct option in error messages.

parent c944db5f
......@@ -773,7 +773,7 @@ static inline struct strarray parse_options( int argc, char **argv, const char *
char *start, *end;
int i;
#define OPT_ERR(fmt) { callback( '?', strmake( fmt, argv[1] )); continue; }
#define OPT_ERR(fmt) { callback( '?', strmake( fmt, argv[i] )); continue; }
for (i = 1; i < argc; i++)
{
......
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