diff options
author | dmaclach <dmaclach@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-07-28 18:23:15 +0000 |
---|---|---|
committer | dmaclach <dmaclach@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-07-28 18:23:15 +0000 |
commit | 6e3869c19fbb94b739e45b495476ebdd925133ea (patch) | |
tree | fd9e37df7b64a8347ee1cd99efe4feb1f2ea10c5 /src/client/mac/handler/exception_handler.cc | |
parent | Review: http://breakpad.appspot.com/135001 (diff) | |
download | breakpad-6e3869c19fbb94b739e45b495476ebdd925133ea.tar.xz |
Review: http://breakpad.appspot.com/136001
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@633 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/mac/handler/exception_handler.cc')
-rw-r--r-- | src/client/mac/handler/exception_handler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/mac/handler/exception_handler.cc b/src/client/mac/handler/exception_handler.cc index 9886a529..80535318 100644 --- a/src/client/mac/handler/exception_handler.cc +++ b/src/client/mac/handler/exception_handler.cc @@ -453,10 +453,11 @@ void *ExceptionHandler::WaitForMessage(void *exception_handler_class) { // Wait for the exception info while (1) { receive.header.msgh_local_port = self->handler_port_; - receive.header.msgh_size = sizeof(receive); + receive.header.msgh_size = static_cast<mach_msg_size_t>(sizeof(receive)); kern_return_t result = mach_msg(&(receive.header), MACH_RCV_MSG | MACH_RCV_LARGE, 0, - sizeof(receive), self->handler_port_, + receive.header.msgh_size, + self->handler_port_, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); |