FlushFileBuffers returns 0 on failure, then we have to call GetLastError.