some mingw bits to move its gui variation closer to building and running
This commit is contained in:
+10
-4
@@ -1333,12 +1333,18 @@ mswin_raw_print_flush()
|
||||
{
|
||||
if (raw_print_strbuf.str != NULL) {
|
||||
int wlen = strlen(raw_print_strbuf.str) + 1;
|
||||
TCHAR * wbuf = (TCHAR *) alloc(wlen * sizeof(TCHAR));
|
||||
if (wbuf != NULL) {
|
||||
NHMessageBox(GetNHApp()->hMainWnd,
|
||||
if (strcmp(raw_print_strbuf.str, "\n") != 0
|
||||
#ifdef _MSC_VER
|
||||
|| IsDebuggerPresent()
|
||||
#endif
|
||||
) {
|
||||
TCHAR * wbuf = (TCHAR *) alloc(wlen * sizeof(TCHAR));
|
||||
if (wbuf != NULL) {
|
||||
NHMessageBox(GetNHApp()->hMainWnd,
|
||||
NH_A2W(raw_print_strbuf.str, wbuf, wlen),
|
||||
MB_ICONINFORMATION | MB_OK);
|
||||
free(wbuf);
|
||||
free(wbuf);
|
||||
}
|
||||
}
|
||||
strbuf_empty(&raw_print_strbuf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user