From d5b1c9359820475afdd9261f470ef765295f9278 Mon Sep 17 00:00:00 2001 From: Joel de Vahl Date: Thu, 2 Oct 2008 14:37:48 +0000 Subject: fixed message box on osx --- src/base/system.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/base/system.c b/src/base/system.c index 5fb48e12..02bbed7f 100644 --- a/src/base/system.c +++ b/src/base/system.c @@ -1134,10 +1134,10 @@ void gui_messagebox(const char *title, const char *message) /* END HACK */ CreateStandardAlert(kAlertStopAlert, - CFSTR(title), - CFSTR(message), - NULL, - &theItem); + CFStringCreateWithCString(NULL, title, kCFStringEncodingASCII), + CFStringCreateWithCString(NULL, message, kCFStringEncodingASCII), + NULL, + &theItem); RunStandardAlert(theItem, NULL, &itemIndex); #elif defined(CONF_FAMILY_UNIX) -- cgit 1.4.1