Changeset 27388 in vbox
- Timestamp:
- Mar 15, 2010 11:00:25 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 58841
- Location:
- trunk/src/VBox/Runtime/r3/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r26761 r27388 478 478 RTR3DECL(int) RTFileFlush(RTFILE File) 479 479 { 480 int rc; 481 482 if (FlushFileBuffers((HANDLE)File) == FALSE) 483 { 484 rc = GetLastError(); 480 if (!FlushFileBuffers((HANDLE)File)) 481 { 482 int rc = GetLastError(); 485 483 Log(("FlushFileBuffers failed with %d\n", rc)); 486 484 return RTErrConvertFromWin32(rc); -
trunk/src/VBox/Runtime/r3/win/pipe-win.cpp
r27313 r27388 715 715 AssertReturn(pThis->u32Magic == RTPIPE_MAGIC, VERR_INVALID_HANDLE); 716 716 AssertReturn(!pThis->fRead, VERR_ACCESS_DENIED); 717 #if 1 718 return VERR_NOT_SUPPORTED; 719 #else 720 721 if (fsync(pThis->fd)) 722 { 723 if (errno == EINVAL || errno == ENOTSUP) 724 return VERR_NOT_SUPPORTED; 725 return RTErrConvertFromErrno(errno); 726 } 717 718 if (!FlushFileBuffers(pThis->hPipe)) 719 return RTErrConvertFromWin32(GetLastError()); 727 720 return VINF_SUCCESS; 728 #endif729 721 } 730 722
Note:
See TracChangeset
for help on using the changeset viewer.