diff --git a/Source/util.cpp b/Source/util.cpp index 28184d55..33c0b10a 100644 --- a/Source/util.cpp +++ b/Source/util.cpp @@ -672,11 +672,11 @@ tstring get_executable_path(const TCHAR* argv0) { assert(rc != 0); return tstring(temp_buf); #elif __APPLE__ - TCHAR temp_buf[MAXPATHLEN+1]; + char temp_buf[MAXPATHLEN+1]; unsigned int buf_len = MAXPATHLEN; int rc = Apple::_NSGetExecutablePath(temp_buf, &buf_len); assert(rc == 0); - return tstring(temp_buf); + return tstring(CtoTString(temp_buf)); #else /* Linux/BSD/POSIX/etc */ const TCHAR *envpath = _tgetenv(_T("_")); if( envpath != NULL )