Skip to content

Commit 1ca5345

Browse files
committed
PlugIn: use _binaryLoadable instead of _urlExists
Use _binaryLoadable to ensure that the path exists rather than _urlExists.
1 parent 69dcd05 commit 1ca5345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/PlugIn.subproj/CFBundle_Executable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static CFURLRef _CFBundleCopyExecutableURLRaw(CFURLRef urlPath, CFStringRef exeN
119119
#elif DEPLOYMENT_TARGET_WINDOWS
120120
if (!executableURL) {
121121
executableURL = CFURLCreateWithFileSystemPathRelativeToBase(kCFAllocatorSystemDefault, exeName, kCFURLWindowsPathStyle, false, urlPath);
122-
if (executableURL && !_urlExists(executableURL)) {
122+
if (executableURL && !_binaryLoadable(executableURL)) {
123123
CFRelease(executableURL);
124124
executableURL = NULL;
125125
}

0 commit comments

Comments
 (0)