--- np2/macosx/sysmng.cpp 2003/12/08 00:55:33 1.10 +++ np2/macosx/sysmng.cpp 2004/05/23 04:07:56 1.12 @@ -98,13 +98,20 @@ void sysmng_updatecaption(BYTE flag) { #if defined(NP2GCC) milstr_ncpy(work, np2oscfg.titles, sizeof(work)); #else +#if !defined(SUPPORT_PC9821) milstr_ncpy(work, "Neko Project II", sizeof(work)); +#else + milstr_ncpy(work, "Neko Project 21", sizeof(work)); +#endif #endif milstr_ncat(work, strtitle, sizeof(work)); milstr_ncat(work, strclock, sizeof(work)); #if defined(NP2GCC) - SetWindowTitleWithCFString(hWndMain, CFStringCreateWithCString(NULL, work, CFStringGetSystemEncoding())); + CFStringRef cfstr; + cfstr = CFStringCreateWithCString(NULL, work, CFStringGetSystemEncoding()); + SetWindowTitleWithCFString(hWndMain, cfstr); + CFRelease(cfstr); #else mkstr255(str, work); SetWTitle(hWndMain, str);