Index: /trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/win/fileio-win.cpp	(revision 27387)
+++ /trunk/src/VBox/Runtime/r3/win/fileio-win.cpp	(revision 27388)
@@ -478,9 +478,7 @@
 RTR3DECL(int)  RTFileFlush(RTFILE File)
 {
-    int rc;
-
-    if (FlushFileBuffers((HANDLE)File) == FALSE)
-    {
-        rc = GetLastError();
+    if (!FlushFileBuffers((HANDLE)File))
+    {
+        int rc = GetLastError();
         Log(("FlushFileBuffers failed with %d\n", rc));
         return RTErrConvertFromWin32(rc);
Index: /trunk/src/VBox/Runtime/r3/win/pipe-win.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/win/pipe-win.cpp	(revision 27387)
+++ /trunk/src/VBox/Runtime/r3/win/pipe-win.cpp	(revision 27388)
@@ -715,16 +715,8 @@
     AssertReturn(pThis->u32Magic == RTPIPE_MAGIC, VERR_INVALID_HANDLE);
     AssertReturn(!pThis->fRead, VERR_ACCESS_DENIED);
-#if 1
-    return VERR_NOT_SUPPORTED;
-#else
-
-    if (fsync(pThis->fd))
-    {
-        if (errno == EINVAL || errno == ENOTSUP)
-            return VERR_NOT_SUPPORTED;
-        return RTErrConvertFromErrno(errno);
-    }
+
+    if (!FlushFileBuffers(pThis->hPipe))
+        return RTErrConvertFromWin32(GetLastError());
     return VINF_SUCCESS;
-#endif
 }
 
