Closed Bug 783863 Opened 13 years ago Closed 13 years ago

ArchiveInputStream::Tell incorrectly uses mStatus as an nsresult

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: ayg, Assigned: ayg)

References

Details

Attachments

(1 file)

Bug 781153 added this: NS_IMETHODIMP ArchiveInputStream::Tell(PRInt64 *aResult) { if (NS_FAILED(mStatus)) return mStatus; LL_UI2L(*aResult, mData.cursor); return NS_OK; } mStatus is defined as: enum { NotStarted, Started, Done } mStatus; So NS_FAILED() will always return false here.
Attached patch PatchSplinter Review
Attachment #653157 - Flags: review?(jst)
Comment on attachment 653157 [details] [diff] [review] Patch This is fine with me, but I'm going to defer the actual review to Andrea who wrote this code.
Attachment #653157 - Flags: review?(jst) → review?(amarchesini)
Comment on attachment 653157 [details] [diff] [review] Patch right!
Attachment #653157 - Flags: review?(amarchesini) → review+
Flags: in-testsuite-
OS: Linux → All
Hardware: x86 → All
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: