fix W343-1 open win32 bug from known bugs page

W343-1 Redirecting score output through a pipe doesn't work.
This commit is contained in:
nethack.allison
2006-04-25 01:16:54 +00:00
parent f0963e3fb6
commit 3e2f7f946d
4 changed files with 29 additions and 9 deletions
+6 -1
View File
@@ -1290,8 +1290,13 @@ void mswin_raw_print(const char *str)
{
TCHAR wbuf[255];
logDebug("mswin_raw_print(%s)\n", str);
if( str && *str )
if( str && *str ) {
extern int redirect_stdout;
if (!redirect_stdout)
NHMessageBox(GetNHApp()->hMainWnd, NH_A2W(str, wbuf, sizeof(wbuf)), MB_ICONINFORMATION | MB_OK );
else
fprintf(stdout,"%s",str);
}
}
/*