diff --git a/python/idc.py b/python/idc.py index 9d7983a..7b0e423 100644 --- a/python/idc.py +++ b/python/idc.py @@ -2837,7 +2837,7 @@ def AskStr(defval, prompt): @return: the entered string or 0. """ - return idaapi.askstr(idaapi.HIST_IDENT, defval, prompt) + return idaapi.askstr(0, defval, prompt) def AskFile(forsave, mask, prompt): diff --git a/swig/idd.i b/swig/idd.i index 52a62d6..56a122a 100644 --- a/swig/idd.i +++ b/swig/idd.i @@ -16,7 +16,7 @@ static bool dbg_can_query() { // Reject the request only if no debugger is set // or the debugger cannot be queried while not in suspended state - return !(dbg == NULL || (!dbg->may_disturb() && get_process_state() != DSTATE_SUSP)); + return !(dbg == NULL || (!dbg->may_disturb() && get_process_state() > DSTATE_SUSP)); } //-------------------------------------------------------------------------