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:
+6
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user