Skip to content

Commit 4129a45

Browse files
committed
We were doing nothing with the executable path here unless the platform was Darwin or Windows. Use the PLATFORM_PATH_STYLE macro here instead to ensure all platforms execute this.
1 parent 920035a commit 4129a45

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

CoreFoundation/PlugIn.subproj/CFBundle_Executable.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,7 @@ static CFURLRef _CFBundleCopyExecutableURLInDirectory2(CFBundleRef bundle, CFURL
182182
if (executablePath) CFRetain(executablePath);
183183
__CFUnlock(&bundle->_lock);
184184
if (executablePath) {
185-
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_EMBEDDED_MINI
186-
executableURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, executablePath, kCFURLPOSIXPathStyle, false);
187-
#elif DEPLOYMENT_TARGET_WINDOWS
188-
executableURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, executablePath, kCFURLWindowsPathStyle, false);
189-
#endif
185+
executableURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, executablePath, PLATFORM_PATH_STYLE, false);
190186
if (executableURL) {
191187
foundIt = true;
192188
}

0 commit comments

Comments
 (0)