Use a common helper macro to declare some UI output related variables

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6800 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2016-11-22 23:11:33 +00:00
parent ca0c51491b
commit d698d166d5
6 changed files with 18 additions and 15 deletions

View file

@ -1115,6 +1115,14 @@ int WinStdIO_wprintf(const wchar_t*Fmt, ...)
}
#endif
void PrintColorFmtErrMsg(const TCHAR *fmtstr, va_list args)
{
PrintColorFmtMsg_WARN(_T("")); // flush g_output
SetPrintColorERR();
_vftprintf(g_errout, fmtstr, args), fflush(g_errout);
ResetPrintColor();
}
void PrintColorFmtMsg(unsigned int type, const TCHAR *fmtstr, va_list args)
{
#ifdef _WIN32