瀏覽代碼

WindowServer: Map shared GraphicsBitmaps read-only on the server side.

Andreas Kling 6 年之前
父節點
當前提交
a47f33bed3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      SharedGraphics/GraphicsBitmap.cpp

+ 1 - 1
SharedGraphics/GraphicsBitmap.cpp

@@ -27,7 +27,7 @@ GraphicsBitmap::GraphicsBitmap(Process& process, const Size& size)
     {
         auto& server = WSEventLoop::the().server_process();
         InterruptDisabler disabler;
-        m_server_region = server.allocate_region_with_vmo(LinearAddress(), size_in_bytes, move(vmo), 0, "GraphicsBitmap (server)", true, true);
+        m_server_region = server.allocate_region_with_vmo(LinearAddress(), size_in_bytes, move(vmo), 0, "GraphicsBitmap (server)", true, false);
         m_server_region->set_shared(true);
     }
     m_data = (RGBA32*)m_server_region->linearAddress.asPtr();