Changeset 156 for trunk/appswitch/appswitch/main.c
- Timestamp:
- 04/19/04 02:40:59 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/appswitch/appswitch/main.c
r145 r156 3 3 Nicholas Riley <appswitch@sabi.net> 4 4 5 Copyright (c) 2003 , Nicholas Riley5 Copyright (c) 2003-04, Nicholas Riley 6 6 All rights reserved. 7 7 … … 250 250 if (bundle != NULL) { 251 251 *bundleID = CFBundleGetIdentifier(bundle); 252 if (*bundleID != NULL) { 253 CFRetain(*bundleID); 252 254 #if DEBUG 253 CFShow(*bundleID);255 CFShow(*bundleID); 254 256 #endif 257 } 258 CFRelease(bundle); 259 } else { 260 *bundleID = NULL; 255 261 } 256 262 CFRelease(url); … … 346 352 if (!bundleIdentifierForApplication(&bundleID, path)) 347 353 errexit("can't get bundle location for process '%s' (PSN %ld.%ld, pid %ld)", name, psn.hi, psn.lo, info->UnixPID); 348 if (bundleID != NULL && CFStringCompare(OPTS.bundleID, bundleID, kCFCompareCaseInsensitive) == kCFCompareEqualTo) 349 break; 354 if (bundleID != NULL) { 355 CFComparisonResult result = CFStringCompare(OPTS.bundleID, bundleID, kCFCompareCaseInsensitive); 356 if (result == kCFCompareEqualTo) 357 break; 358 CFRelease(bundleID); 359 } 350 360 continue; 351 361 }
Note:
See TracChangeset
for help on using the changeset viewer.