Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: third_party/crashpad/crashpad/util/mach/mach_message.cc

Issue 2804713002: Update Crashpad to b4095401639ebe2ad33169e5c1d994065cbff1b8 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/util/mach/mach_message.cc
diff --git a/third_party/crashpad/crashpad/util/mach/mach_message.cc b/third_party/crashpad/crashpad/util/mach/mach_message.cc
index 30c3a8cf4208dd2a645f18252142a36777163ab0..771f4603a4fd0557fd18ae8aeed01f3e9e583f99 100644
--- a/third_party/crashpad/crashpad/util/mach/mach_message.cc
+++ b/third_party/crashpad/crashpad/util/mach/mach_message.cc
@@ -197,14 +197,12 @@ void PrepareMIGReplyFromRequest(const mach_msg_header_t* in_header,
mach_msg_header_t* out_header) {
out_header->msgh_bits =
MACH_MSGH_BITS(MACH_MSGH_BITS_REMOTE(in_header->msgh_bits), 0);
- out_header->msgh_remote_port = in_header->msgh_remote_port;
out_header->msgh_size = sizeof(mig_reply_error_t);
+ out_header->msgh_remote_port = in_header->msgh_remote_port;
out_header->msgh_local_port = MACH_PORT_NULL;
+ out_header->msgh_reserved = 0;
out_header->msgh_id = in_header->msgh_id + 100;
reinterpret_cast<mig_reply_error_t*>(out_header)->NDR = NDR_record;
-
- // MIG-generated dispatch routines don’t do this, but they should.
- out_header->msgh_reserved = 0;
}
void SetMIGReplyError(mach_msg_header_t* out_header, kern_return_t error) {

Powered by Google App Engine
This is Rietveld 408576698