Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xadhoom committed Mar 20, 2019
1 parent 93c2042 commit c5dfbee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SourceX/miniwin/misc_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ WINBOOL CloseHandle(HANDLE hObject)
filestream.write(file->buf.data(), file->buf.size());
if (filestream.fail())
throw std::runtime_error("ofstream::write");
filestream.close();
std::remove(file->path.c_str());
if (std::rename((file->path + ".tmp").c_str(), file->path.c_str()))
throw std::runtime_error("rename");
Expand Down

0 comments on commit c5dfbee

Please sign in to comment.