Mercurial > hg > nnchat
comparison main.c @ 521:a9a81db93c74
Fix win32 build again.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 05 Jun 2012 23:51:20 +0300 |
parents | ab56ed0d0c25 |
children | ba5807ebff88 |
comparison
equal
deleted
inserted
replaced
520:ab56ed0d0c25 | 521:a9a81db93c74 |
---|---|
1818 } | 1818 } |
1819 } | 1819 } |
1820 | 1820 |
1821 // Shutdown | 1821 // Shutdown |
1822 err_exit: | 1822 err_exit: |
1823 #ifdef __WIN32 | |
1824 if (errorMessages) | |
1825 { | |
1826 char *tmp; | |
1827 printMsg(NULL, "Press enter to exit.\n"); | |
1828 memset(&editState, 0, sizeof(editState)); | |
1829 tmp = nnwin_prompt_requester(FALSE, &editState, processUserPrompt, updateUserPrompt); | |
1830 th_free(tmp); | |
1831 } | |
1832 #endif | |
1833 | |
1823 th_cfg_free(cfg); | 1834 th_cfg_free(cfg); |
1824 th_free(setHomeDir); | 1835 th_free(setHomeDir); |
1825 th_llist_free_func(setIdleMessages, th_free); | 1836 th_llist_free_func(setIdleMessages, th_free); |
1826 nn_userhash_free(nnUsers); | 1837 nn_userhash_free(nnUsers); |
1827 nn_editbuf_free(editBuf); | 1838 nn_editbuf_free(editBuf); |
1828 | 1839 |
1829 for (index = 0; index <= SET_MAX_HISTORY; index++) | 1840 for (index = 0; index <= SET_MAX_HISTORY; index++) |
1830 nn_editbuf_free(editHistBuf[index]); | 1841 nn_editbuf_free(editHistBuf[index]); |
1831 | 1842 |
1832 #ifdef __WIN32 | |
1833 if (errorMessages) | |
1834 { | |
1835 char *tmp = nnwin_prompt_requester("Press enter to quit.\n", FALSE); | |
1836 th_free(tmp); | |
1837 } | |
1838 #endif | |
1839 | |
1840 nnwin_shutdown(); | 1843 nnwin_shutdown(); |
1841 | 1844 |
1842 #ifndef __WIN32 | 1845 #ifndef __WIN32 |
1843 if (errorMessages) | 1846 if (errorMessages) |
1844 THERR("%s", errorMessages); | 1847 THERR("%s", errorMessages); |