Ignore:
Timestamp:
Mar 16, 2007 9:25:47 AM (18 years ago)
Author:
bennylp
Message:

Implemented ticket #185: Added pj_file_flush() to file I/O API to flush file buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/file_io_win32.c

    r974 r1074  
    205205} 
    206206 
     207PJ_DEF(pj_status_t) pj_file_flush(pj_oshandle_t fd) 
     208{ 
     209    BOOL rc; 
     210 
     211    rc = FlushFileBuffers(fd); 
     212 
     213    if (!rc) { 
     214        DWORD dwStatus = GetLastError(); 
     215        if (dwStatus != 0) 
     216            return PJ_RETURN_OS_ERROR(dwStatus); 
     217    } 
     218 
     219    return PJ_SUCCESS; 
     220} 
Note: See TracChangeset for help on using the changeset viewer.