changeset 521:a9a81db93c74

Fix win32 build again.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Jun 2012 23:51:20 +0300
parents ab56ed0d0c25
children 8951665539f5
files main.c
diffstat 1 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Tue Jun 05 23:31:10 2012 +0300
+++ b/main.c	Tue Jun 05 23:51:20 2012 +0300
@@ -1820,6 +1820,17 @@
 
     // Shutdown
 err_exit:
+#ifdef __WIN32
+    if (errorMessages)
+    {
+        char *tmp;
+        printMsg(NULL, "Press enter to exit.\n");
+        memset(&editState, 0, sizeof(editState));
+        tmp = nnwin_prompt_requester(FALSE, &editState, processUserPrompt, updateUserPrompt);
+        th_free(tmp);
+    }
+#endif
+
     th_cfg_free(cfg);
     th_free(setHomeDir);
     th_llist_free_func(setIdleMessages, th_free);
@@ -1829,14 +1840,6 @@
     for (index = 0; index <= SET_MAX_HISTORY; index++)
         nn_editbuf_free(editHistBuf[index]);
 
-#ifdef __WIN32
-    if (errorMessages)
-    {
-        char *tmp = nnwin_prompt_requester("Press enter to quit.\n", FALSE);
-        th_free(tmp);
-    }
-#endif
-
     nnwin_shutdown();
 
 #ifndef __WIN32