| 247 | return false; |
| 248 | } |
| 249 | bool sync() { |
| 250 | if (FlushFileBuffers(h_)) return true; |
| 251 | { const DWORD c_ = GetLastError(); kind_ = win_kind(c_); error_ = last_error(c_); } |
| 252 | return false; |
| 253 | } |
| 254 | bool close() { |
| 255 | if (h_ == INVALID_HANDLE_VALUE) return true; |
| 256 | const bool ok = CloseHandle(h_) != 0; |
no test coverage detected