Closed Bug 862652 Opened 11 years ago Closed 11 years ago

cannot build mapihook using VS2012

Categories

(MailNews Core :: Simple MAPI, defect)

x86
Windows 8
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 860966

People

(Reporter: m_kato, Assigned: m_kato)

Details

Attachments

(1 file)

build failure with VS2012.

142:00.09 c:/Development/hg.mozilla.org/comm-central/mailnews/mapi/mapihook/src/msgMapiImp.cpp(339) : error C2440: 'return' : cannot convert from 'tag_nsresult'
 to 'LONG'
142:00.10
142:00.10         This conversion requires an explicit cast (static_cast, C-style cast or function-style cast)
142:00.10
142:00.10 c:/Development/hg.mozilla.org/comm-central/mailnews/mapi/mapihook/src/msgMapiImp.cpp(385) : error C2440: 'return' : cannot convert from 'tag_nsresult' to 'HRESULT'
142:00.10
142:00.10         This conversion requires an explicit cast (static_cast, C-style cast or function-style cast)
Attached patch fixSplinter Review
Attachment #738295 - Flags: review?(mbanner)
See bug 860966 attachment 736914 [details] [diff] [review] with an identical solution. Looks like requesting review for the patch over there has been forgotten...
Apparently on purpose:

(Quoting Frank Wein [:mcsmurf] from bug 860966 comment #3)
> This patch fixes the build, but still need to check if everything works as
> expected. I'm not sure what the meaning of the "// get the singelton obj"
> comment is in that context (when returning because of an error).
(In reply to rsx11m from comment #2)
> See bug 860966 attachment 736914 [details] [diff] [review] with an identical
> solution. Looks like requesting review for the patch over there has been
> forgotten...

Thanks, rsx11m, I dup of that bug.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Comment on attachment 738295 [details] [diff] [review]
fix

cancel this for duplicated.
Attachment #738295 - Flags: review?(mbanner)
(In reply to rsx11m from comment #3)
> Apparently on purpose:
> 
> (Quoting Frank Wein [:mcsmurf] from bug 860966 comment #3)
> > This patch fixes the build, but still need to check if everything works as
> > expected. I'm not sure what the meaning of the "// get the singelton obj"
> > comment is in that context (when returning because of an error).

Yeah, I'm still not sure what that comment means :) but I checked a few other details on the MAPI API and the fix seems to be correct.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: