Changeset 258 for trunk/dll/error.c


Ignore:
Timestamp:
Aug 16, 2005, 5:37:34 PM (20 years ago)
Author:
root
Message:

showMsg: suppress write to stdout if not error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/error.c

    r182 r258  
    1515  24 May 05 SHL Rework Win_Error args and clean up logic
    1616  27 May 05 SHL Rework to use common showMsg
     17  14 Aug 05 SHL showMsg: suppress write to stdout if not error message
    1718
    1819***********************************************************************/
     
    190191static APIRET showMsg(ULONG mb_type, HWND hwnd, CHAR *pszTitle, CHAR *pszMsg)
    191192{
    192   fputs(pszMsg, stderr);
    193   fputc('\n', stderr);
    194   fflush(stderr);
     193
     194
     195  if ((mb_type & (MB_YESNO | MB_YESNOCANCEL)) == 0)
     196  {
     197    fputs(pszMsg, stderr);
     198    fputc('\n', stderr);
     199    fflush(stderr);
     200  }
    195201
    196202  if (!hwnd)
Note: See TracChangeset for help on using the changeset viewer.