mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Update SharedMemory buf constructor
This commit is contained in:
committed by
Cheng Zhao
parent
900001e547
commit
a52dbf0784
@@ -140,7 +140,7 @@ void PrintingMessageFilter::OnDuplicateSection(
|
||||
base::SharedMemoryHandle* browser_handle) {
|
||||
// Duplicate the handle in this process right now so the memory is kept alive
|
||||
// (even if it is not mapped)
|
||||
base::SharedMemory shared_buf(renderer_handle, true, PeerHandle());
|
||||
base::SharedMemory shared_buf(renderer_handle, true);
|
||||
shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), browser_handle);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user