From 25709112839adbf6175b4198c85cc03cfc33ab64 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sun, 27 Aug 2017 16:09:34 +0300 Subject: [PATCH] Register Win32 error 32 --- Utilities/File.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Utilities/File.cpp b/Utilities/File.cpp index 421fc7e04a..b4d5a5afd2 100644 --- a/Utilities/File.cpp +++ b/Utilities/File.cpp @@ -93,6 +93,7 @@ static fs::error to_error(DWORD e) case ERROR_NEGATIVE_SEEK: return fs::error::inval; case ERROR_DIRECTORY: return fs::error::inval; case ERROR_INVALID_NAME: return fs::error::inval; + case ERROR_SHARING_VIOLATION: return fs::error::acces; default: fmt::throw_exception("Unknown Win32 error: %u.", e); } }