Changes to get fuzzer working in NetHackW.

This commit is contained in:
Bart House
2018-12-12 21:46:14 -08:00
parent ce7c9d5077
commit 0cd50847fb
13 changed files with 121 additions and 20 deletions
+8
View File
@@ -25,6 +25,14 @@ INT_PTR CALLBACK GetlinDlgProc(HWND, UINT, WPARAM, LPARAM);
int
mswin_getlin_window(const char *question, char *result, size_t result_size)
{
if (iflags.debug_fuzzer) {
random_response(result, result_size);
if (result[0] != '\0')
return IDOK;
else
return IDCANCEL;
}
INT_PTR ret;
struct getlin_data data;