From 380f90b097d60ee2873612558787fa90fedc1c0c Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 12 Nov 2017 12:27:27 +0100 Subject: [PATCH] Handle Win32 error 87 ERROR_INVALID_PARAMETER with fs::error::inval --- Utilities/File.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Utilities/File.cpp b/Utilities/File.cpp index afc102e3ca..0511e9159d 100644 --- a/Utilities/File.cpp +++ b/Utilities/File.cpp @@ -97,6 +97,7 @@ static fs::error to_error(DWORD e) case ERROR_SHARING_VIOLATION: return fs::error::acces; case ERROR_DIR_NOT_EMPTY: return fs::error::notempty; case ERROR_NOT_READY: return fs::error::noent; + case ERROR_INVALID_PARAMETER: return fs::error::inval; default: fmt::throw_exception("Unknown Win32 error: %u.", e); } }