diff --git a/audio/drivers_microphone/sdl_microphone.c b/audio/drivers_microphone/sdl_microphone.c index 5b0b0cace95e..b414ac6546a6 100644 --- a/audio/drivers_microphone/sdl_microphone.c +++ b/audio/drivers_microphone/sdl_microphone.c @@ -135,7 +135,7 @@ static void *sdl_microphone_open_mic(void *driver_context, #if __APPLE__ if (!string_is_equal(audio_driver_get_ident(), "sdl2")) { - const char *msg = msg_hash_to_str(MSG_SDL2_MIC_NEEDS_SDL2_AUDIO),msg_hash_to_str(MSG_SDL2_MIC_NEEDS_SDL2_AUDIO); + const char *msg = msg_hash_to_str(MSG_SDL2_MIC_NEEDS_SDL2_AUDIO); runloop_msg_queue_push(msg, strlen(msg), 1, 100, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_WARNING); diff --git a/pkg/apple/HelperBar/CocoaView+HelperBar.swift b/pkg/apple/HelperBar/CocoaView+HelperBar.swift index d15593b6f504..39b7bf727def 100644 --- a/pkg/apple/HelperBar/CocoaView+HelperBar.swift +++ b/pkg/apple/HelperBar/CocoaView+HelperBar.swift @@ -44,9 +44,10 @@ extension CocoaView: HelperBarActionDelegate { func mouseButtonTapped() { mouseHandler.enabled.toggle() let messageKey = mouseHandler.enabled ? MSG_IOS_TOUCH_MOUSE_ENABLED : MSG_IOS_TOUCH_MOUSE_DISABLED - let message = msg_hash_to_str(messageKey) - runloop_msg_queue_push(message, strlen(message), 1, 100, true, nil, - MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO) + if let message = msg_hash_to_str(messageKey) { + runloop_msg_queue_push(message, strlen(message), 1, 100, true, nil, + MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO) + } } func helpButtonTapped() {