From 28bfc903b9175c4f640abfdaee201dd2a4a60b79 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 12 Mar 2016 14:05:25 +0000 Subject: [PATCH] simplewallet: special ^C handling for windows Because obviously it doesn't work as other POSIX platforms. Reported and tested by luigi1111. --- src/simplewallet/simplewallet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 3e5cdfcb..04201c37 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -2746,7 +2746,11 @@ int main(int argc, char* argv[]) else { tools::signal_handler::install([&w](int type) { +#ifdef WIN32 + if (type == CTRL_C_EVENT) +#else if (type == SIGINT) +#endif { // if we're pressing ^C when refreshing, just stop refreshing w.interrupt();