changeset 222:a1fefbce0b7a

Add a simple 'press enter to continue' for Windows port, when an error occurs so the user can see it before the application closes.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 27 Nov 2010 17:45:20 +0200
parents f6160051b72e
children 03af28fb1c38
files nnchat.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Sat Nov 27 17:44:18 2010 +0200
+++ b/nnchat.c	Sat Nov 27 17:45:20 2010 +0200
@@ -1411,7 +1411,12 @@
     }
     
     if (isError) {
+#ifdef __WIN32
+        char *tmp = promptRequester("Press enter to quit.\n", FALSE);
+        th_free(tmp);
+#else
         THMSG(1, "Error exit.\n");
+#endif
     }
     
     th_free(optUserNameEnc);