more win32 gui fuzzer work

This commit is contained in:
nhmall
2018-12-15 19:31:42 -05:00
parent bebc92f6fb
commit 902f76d1fa
3 changed files with 2 additions and 2 deletions

View File

@@ -175,6 +175,7 @@ E boolean NDECL(status_hilite_menu);
E char NDECL(randomkey); E char NDECL(randomkey);
E void FDECL(random_response, (char *, int)); E void FDECL(random_response, (char *, int));
E int NDECL(rnd_extcmd_idx);
E int NDECL(doconduct); E int NDECL(doconduct);
E int NDECL(domonability); E int NDECL(domonability);
E char FDECL(cmd_from_func, (int NDECL((*)))); E char FDECL(cmd_from_func, (int NDECL((*))));

View File

@@ -22,6 +22,5 @@ struct ext_func_tab {
}; };
extern struct ext_func_tab extcmdlist[]; extern struct ext_func_tab extcmdlist[];
extern int extcmdlist_length;
#endif /* FUNC_TAB_H */ #endif /* FUNC_TAB_H */

View File

@@ -168,7 +168,7 @@ int
mswin_ext_cmd_window(int *selection) mswin_ext_cmd_window(int *selection)
{ {
if (iflags.debug_fuzzer) { if (iflags.debug_fuzzer) {
*selection = rn2(extcmdlist_length + 1) - 1; *selection = rnd_extcmd_idx();
if (*selection != -1) if (*selection != -1)
return IDOK; return IDOK;