Closed Bug 764127 Opened 12 years ago Closed 12 years ago

some return values in Windows runtime stub are wrong type or wrongly interpreted

Categories

(Firefox Graveyard :: Webapp Runtime, defect)

14 Branch
All
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 16

People

(Reporter: myk, Assigned: myk)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

While reviewing the fix for bug 760747, I noticed that in the Windows webapp runtime stub AttemptGRELoadAndLaunch() sometimes returns an nsresult (i.e. an int), although its return type is boolean.  And main() assigns the return value of GetFirefoxDirFromRegistry() to `rv`, which is an nsresult, although the return value of that function is a boolean.

Here are the obvious fixes.
Attachment #632380 - Flags: review?(felipc)
Attachment #632380 - Flags: review?(felipc) → review+
https://hg.mozilla.org/mozilla-central/rev/deaaaefbc089
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Sounds like this is internal code changes - no verification needed (correct me if I'm incorrect though Myk if you think there is end-user testing to this).
Whiteboard: [qa-]
Flags: in-moztrap-
QA Contact: jsmith
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: