From 7ef11f566bee642e019516c7840d6e6731824a73 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 3 Sep 2022 23:08:40 +0200 Subject: [PATCH] fix: Crash when resizing a non-writable provider Fixes #704 --- plugins/builtin/source/content/providers/file_provider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/providers/file_provider.cpp b/plugins/builtin/source/content/providers/file_provider.cpp index 6dacdf033..55d4fe110 100644 --- a/plugins/builtin/source/content/providers/file_provider.cpp +++ b/plugins/builtin/source/content/providers/file_provider.cpp @@ -29,7 +29,7 @@ namespace hex::plugin::builtin::prv { } bool FileProvider::isResizable() const { - return true; + return isAvailable() && isWritable(); } bool FileProvider::isSavable() const {