From a86558bf86a52ba7a8d5de24abc782b990711afe Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Thu, 30 Aug 2018 16:01:02 +0200 Subject: cast --- src/carbon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/carbon.c b/src/carbon.c index bd3775b..285468b 100644 --- a/src/carbon.c +++ b/src/carbon.c @@ -27,7 +27,9 @@ carbon_event_handler(EventHandlerCallRef ref, EventRef event, void *context) carbon->process_name = NULL; } - CFStringLowercase(process_name_ref, CFLocaleGetSystem()); + // NOTE(koekeishiya): Might want to call ProcessInformationCopyDictionary instead. + // http://mirror.informatimago.com/next/developer.apple.com/documentation/Carbon/Reference/Process_Manager/prmref_main/function_group_1.html#//apple_ref/c/func/GetProcessInformationCopyDictionary + CFStringLowercase((CFMutableStringRef)process_name_ref, CFLocaleGetSystem()); carbon->process_name = copy_cfstring(process_name_ref); CFRelease(process_name_ref); } -- cgit v1.2.3