Changeset 181 for trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEAction.c
- Timestamp:
- 05/09/05 04:16:56 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEAction.c
r106 r181 12 12 #include "ICeCoffEEShared.h" 13 13 #include "ICeCoffEEBookmarks.h" 14 15 /* thanks to Slava Karpenko for this one! */16 OSStatus _LSCopyApplicationURLsForItemURL(CFURLRef inURL, LSRolesMask inRoleMask, CFArrayRef *outApps); // outApps to be CFReleased()17 14 18 15 #define THROW_ERR(e) { err = e; goto END; } … … 159 156 OSStatus err; 160 157 161 if ( (err = _LSCopyApplicationURLsForItemURL(url, kLSRolesAll, &appURLsUnsorted)) != noErr) 162 THROW_ERR(err); 158 appURLsUnsorted = LSCopyApplicationURLsForURL(url, kLSRolesAll); 163 159 164 160 CFIndex appCount = 0; … … 297 293 &startIndex, &endIndex, h)) != noErr) THROW_ERR(err); 298 294 299 if ( (url = CFURLCreateWithBytes(NULL, *h, GetHandleSize(h), kCFStringEncodingASCII,295 if ( (url = CFURLCreateWithBytes(NULL, (const UInt8 *)*h, GetHandleSize(h), kCFStringEncodingASCII, 300 296 NULL)) == NULL) THROW_ERR(paramErr); 301 297
Note:
See TracChangeset
for help on using the changeset viewer.