From e63c02d999f21ffe5536a3857d3539adb6d0dad1 Mon Sep 17 00:00:00 2001 From: Joel Ahlgren Date: Sun, 15 Aug 2021 22:56:31 +0200 Subject: [PATCH] Added explicit error message for HRESULT 0x80131515. --- SevenZip/SevenZipBase.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SevenZip/SevenZipBase.cs b/SevenZip/SevenZipBase.cs index 3285a91..3d72e6f 100644 --- a/SevenZip/SevenZipBase.cs +++ b/SevenZip/SevenZipBase.cs @@ -212,6 +212,9 @@ internal void CheckedExecute(int hresult, string message, CallbackBase handler) switch (hresult) { + case -2146233067: + exception = new SevenZipException("Operation is not supported. (0x80131515: E_NOTSUPPORTED)"); + break; case -2147024784: exception = new SevenZipException("There is not enough space on the disk. (0x80070070: ERROR_DISK_FULL)"); break;