Application Kit: Add B_CLONEABLE_AREA permission to cloned server areas.

The Media Kit needs this for overlays.
This commit is contained in:
Augustin Cavalier 2019-08-11 15:27:51 -04:00
parent c8e11499cc
commit 96e64e6e14

View File

@ -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;