diff --git a/Source/Process/Paths.cpp b/Source/Process/Paths.cpp index bf89afa9..0875d00a 100644 --- a/Source/Process/Paths.cpp +++ b/Source/Process/Paths.cpp @@ -103,23 +103,23 @@ namespace Aurora::Process } return false; - + #elif defined(AURORA_PLATFORM_APPLE) || defined(AURORA_PLATFORM_IOS) - CFURLRef bundleURL = CFBundleCopyExecutableURL(CFBundleGetMainBundle()); - CFStringRef pathRef = CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle); + CFURLRef bundleURL = CFBundleCopyExecutableURL(CFBundleGetMainBundle()); + CFStringRef pathRef = CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle); auto utf16length = CFStringGetLength(pathRef); auto maxUtf8len = CFStringGetMaximumSizeForEncoding(utf16length, kCFStringEncodingUTF8); path.resize(maxUtf8len); - if (!CFStringGetCString(pathRef, path.data(), maxUtf8len, kCFStringEncodingUTF8)) + if (!CFStringGetCString(pathRef, path.data(), maxUtf8len, kCFStringEncodingUTF8)) { path.clear(); return false; } - + path.resize(std::strlen(path.c_str())); splitter = '\\';