From: svenhoefer Date: Mon, 19 Sep 2016 19:08:03 +0000 (+0200) Subject: - shellexec: try to fix instance-handling X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=1bbb3e4529dc37c503f27ea1b3e8e6267107d0c6;p=shellexec.git - shellexec: try to fix instance-handling --- diff --git a/io.c b/io.c index 562814b..d049106 100644 --- a/io.c +++ b/io.c @@ -165,6 +165,11 @@ int GetRCCode(int timeout_in_ms) { int rv = -1; + if (!RCKeyPressed() || (get_instance()>instance)) + { + return rv; + } + if (timeout_in_ms) { struct pollfd pfd; struct timeval tv;