Ignore:
Timestamp:
Sep 10, 2016, 12:15:57 AM (9 years ago)
Author:
bird
Message:

More stdout console buffering tricks on windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/maybe_con_fwrite.c

    r2900 r2906  
    8888                        if (cwcToWrite > 0)
    8989                        {
     90                            int rc;
     91                            pawcTmp[cwcToWrite] = '\0';
     92
    9093                            /* Let the CRT do the rest.  At least the Visual C++ 2010 CRT
    9194                               sources indicates _cputws will do the right thing we want.  */
    92                             pawcTmp[cwcToWrite] = '\0';
    9395                            fflush(pFile);
    94                             if (_cputws(pawcTmp) >= 0)
     96                            rc = _cputws(pawcTmp);
     97                            free(pawcTmp);
     98                            if (rc >= 0)
    9599                                return cUnits;
    96100                            return 0;
    97101                        }
     102                        free(pawcTmp);
    98103                    }
    99104                }
Note: See TracChangeset for help on using the changeset viewer.