Closed
Bug 860966
Opened 11 years ago
Closed 11 years ago
Compile failure in msgMapiImp.cpp with Visual Studio 2012
Categories
(MailNews Core :: Simple MAPI, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 23.0
People
(Reporter: mcsmurf, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
1.08 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
When trying to compile SeaMonkey with Visual Studio 2012, the builds stops when trying to compile msgMapiImp.cpp because of those two errors: http://hg.mozilla.org/comm-central/annotate/724e23e39c73/mailnews/mapi/mapihook/src/msgMapiImp.cpp#l339 Returning an nserror in a function with a LONG return type and http://hg.mozilla.org/comm-central/annotate/724e23e39c73/mailnews/mapi/mapihook/src/msgMapiImp.cpp#l385 Returning an nserror in a function with a HRESULT return type (says the compiler)
Comment 1•11 years ago
|
||
Previous versions of VC don't support strongly typed enums so they silently cast nsresult to LONG/HRESULT/whatever. Anyway, we shouldn't be returning NS_ERROR_FAILURE, we should be using Microsoft error codes.
Reporter | ||
Comment 3•11 years ago
|
||
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).
Reporter | ||
Comment 4•11 years ago
|
||
This one is the correct patch, mixed up two patches there.
Attachment #736909 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #736914 -
Flags: review?(mbanner)
Comment 6•11 years ago
|
||
Comment on attachment 736914 [details] [diff] [review] Patch Looks good to me.
Attachment #736914 -
Flags: review?(mbanner) → review+
Comment 7•11 years ago
|
||
https://hg.mozilla.org/comm-central/rev/7ec742c695b8
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 23.0
You need to log in
before you can comment on or make changes to this bug.
Description
•