fixed GH #990: Potential race condition in on Windows

This commit is contained in:
Guenter Obiltschnig
2016-11-03 14:48:51 +01:00
parent 6116136afe
commit 86483b4d4b
9 changed files with 39 additions and 7 deletions

View File

@@ -376,7 +376,7 @@ void FileImpl::handleLastErrorImpl(const std::string& path)
case ERROR_CANNOT_MAKE:
throw CreateFileException(path, err);
case ERROR_DIR_NOT_EMPTY:
throw FileException("directory not empty", path, err);
throw DirectoryNotEmptyException(path, err);
case ERROR_WRITE_FAULT:
throw WriteFileException(path, err);
case ERROR_READ_FAULT: