- if (msgh) {
- bzero(msgh, sizeof(mach_msg_header_t));
- msgh->msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0);
- msgh->msgh_size = sizeof(mach_msg_header_t);
- msgh->msgh_remote_port = port;
- }
+ msgh = &((IODataQueueInternal *) notifyMsg)->msg;
+ bzero(msgh, sizeof(mach_msg_header_t));
+ msgh->msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0);
+ msgh->msgh_size = sizeof(mach_msg_header_t);
+ msgh->msgh_remote_port = port;