| 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) {
|
|
|