From 96e64e6e146a9f9e2b0b1a45116721c9109bbe06 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sun, 11 Aug 2019 15:27:51 -0400 Subject: [PATCH] Application Kit: Add B_CLONEABLE_AREA permission to cloned server areas. The Media Kit needs this for overlays. --- src/kits/app/ServerMemoryAllocator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/app/ServerMemoryAllocator.cpp b/src/kits/app/ServerMemoryAllocator.cpp index 6d34fc238d..d905cb66f4 100644 --- a/src/kits/app/ServerMemoryAllocator.cpp +++ b/src/kits/app/ServerMemoryAllocator.cpp @@ -90,7 +90,8 @@ ServerMemoryAllocator::AddArea(area_id serverArea, area_id& _area, mapping->local_area = clone_area(readOnly ? "server read-only memory" : "server_memory", &base, addressSpec, - B_READ_AREA | (readOnly ? 0 : B_WRITE_AREA), serverArea); + B_CLONEABLE_AREA | B_READ_AREA | (readOnly ? 0 : B_WRITE_AREA), + serverArea); if (mapping->local_area < B_OK) { status = mapping->local_area;