Commit 4ee31d5e authored by James Juran's avatar James Juran Committed by Alexandre Julliard

Accept responses from 1..n when choosing from multiple symbols to

match the input labels.
parent 9be457dd
......@@ -402,7 +402,12 @@ BOOL DEBUG_GetSymbolValue( const char * name, const int lineno,
ptr = readline("=> ");
if (!*ptr) return FALSE;
i = atoi(ptr);
} while (i < 0 || i >= num);
if (i < 1 || i > num)
DEBUG_Printf(DBG_CHN_MESG, "Invalid choice %d\n", i);
} while (i < 1 || i > num);
/* The array is 0-based, but the choices are 1..n, so we have to subtract one before returning. */
i--;
}
*rtn = value[i];
return TRUE;
......
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