Closed
Bug 312244
Opened 19 years ago
Closed 19 years ago
+[NSURL urlFromWebloc:] uses an FSSpec when it doesn't need to.
Categories
(Camino Graveyard :: OS Integration, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: moz, Assigned: moz)
Details
(Keywords: fixed1.8)
Attachments
(1 file, 1 obsolete file)
874 bytes,
patch
|
sfraser_bugs
:
review+
|
Details | Diff | Splinter Review |
No need for FSSpec when it can just be done with the FSRef we already have.
Patch right-quick.
Assignee | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
Comment on attachment 199362 [details] [diff] [review]
Patch!
>
>- if (inFile && !FSPathMakeRef((UInt8 *)[inFile fileSystemRepresentation], &ref, NULL) && !FSGetCatalogInfo(&ref, kFSCatInfoNone, NULL, NULL, &spec, NULL)) {
>+ if (inFile && !FSPathMakeRef((UInt8 *)[inFile fileSystemRepresentation], &ref, NULL)) {
> short resRef;
Change to (FSPathMakeRef(...) == noErr) and r=me.
Attachment #199362 -
Flags: review+
Assignee | ||
Comment 3•19 years ago
|
||
This patch uses an explicit comparison to noErr.
Attachment #199362 -
Attachment is obsolete: true
Assignee | ||
Updated•19 years ago
|
Attachment #199363 -
Flags: review?(sfraser_bugs)
Updated•19 years ago
|
Attachment #199363 -
Flags: review?(sfraser_bugs) → review+
Comment 4•19 years ago
|
||
b&t
You need to log in
before you can comment on or make changes to this bug.
Description
•