mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +00:00
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
This commit is contained in:
commit
d236a3b78c
@ -93,6 +93,8 @@ pathOfExecutable(System* s, const char** retBuf, unsigned* size)
|
|||||||
CFBundleRef bundle = CFBundleGetMainBundle();
|
CFBundleRef bundle = CFBundleGetMainBundle();
|
||||||
CFURLRef url = CFBundleCopyExecutableURL(bundle);
|
CFURLRef url = CFBundleCopyExecutableURL(bundle);
|
||||||
CFStringRef path = CFURLCopyPath(url);
|
CFStringRef path = CFURLCopyPath(url);
|
||||||
|
path = CFURLCreateStringByReplacingPercentEscapes(kCFAllocatorDefault,
|
||||||
|
path, CFSTR(""));
|
||||||
CFIndex pathSize = CFStringGetMaximumSizeOfFileSystemRepresentation(path);
|
CFIndex pathSize = CFStringGetMaximumSizeOfFileSystemRepresentation(path);
|
||||||
char* buffer = reinterpret_cast<char*>(allocate(s, pathSize));
|
char* buffer = reinterpret_cast<char*>(allocate(s, pathSize));
|
||||||
if (CFStringGetFileSystemRepresentation(path, buffer, pathSize)) {
|
if (CFStringGetFileSystemRepresentation(path, buffer, pathSize)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user