[haiku-commits] haiku: hrev53365 - src/kits/app

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 11 Aug 2019 15:30:25 -0400 (EDT)

hrev53365 adds 1 changeset to branch 'master'
old head: c8e11499ccb07ed540de5565af34735c4d146855
new head: 96e64e6e146a9f9e2b0b1a45116721c9109bbe06
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=96e64e6e146a+%5Ec8e11499ccb0

----------------------------------------------------------------------------

96e64e6e146a: Application Kit: Add B_CLONEABLE_AREA permission to cloned server 
areas.
  
  The Media Kit needs this for overlays.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53365
Commit:      96e64e6e146a9f9e2b0b1a45116721c9109bbe06
URL:         https://git.haiku-os.org/haiku/commit/?id=96e64e6e146a
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Sun Aug 11 19:27:51 2019 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 1 deletion(-)
src/kits/app/ServerMemoryAllocator.cpp | 3 ++-

----------------------------------------------------------------------------

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;
 


Other related posts:

  • » [haiku-commits] haiku: hrev53365 - src/kits/app - waddlesplash