Closed Bug 594224 Opened 14 years ago Closed 14 years ago

All argument parameters of nsIMapi need "unique" directive

Categories

(MailNews Core :: Simple MAPI, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.3a1

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(2 files)

All argument parameters of nsIMapi need "unique" directive because "pointer_default(unique)" does not affect those arguments.

See http://msdn.microsoft.com/en-us/library/ms690150%28VS.85%29.aspx
The document says:

  The pointer_default attribute specifies the default pointer type (unique, ref, or ptr) for all pointers except for those included in parameter lists. If no default type is specified, MIDL assumes that single pointers are unique. However, when you have multiple levels of pointers, you must explicitly specify a default pointer type, even if you want the default type to be unique.
Attached patch FixSplinter Review
Attachment #472872 - Flags: review?(bienvenu)
This fix will fix bug 565041 and bug 558374.
Blocks: 594239
Ooops, sorry. bug 565041 is actually not related to this issue.
Assignee: nobody → ikezoe
(In reply to comment #1)
> Created attachment 472872 [details] [diff] [review]
> Fix

Does this work on windows XP ?

You are changing idl , without changing UUID ?
Yes, it works on Windows XP.

I think changing attribute type does not need changing UUID, but I am not %100 sure so I have no objection to change UUID.
(In reply to comment #5)
> Yes, it works on Windows XP.
> 
> I think changing attribute type does not need changing UUID, but I am not %100
> sure so I have no objection to change UUID.

Please do, just to be safe.
Comment on attachment 472872 [details] [diff] [review]
Fix

I don't think there's any reason to change the UUID - clients are using the external mapi interfaces, not the internal one.
Attachment #472872 - Flags: review?(bienvenu) → review+
Attachment #472872 - Flags: superreview?(neil)
Attachment #472872 - Flags: superreview?(neil) → superreview+
Checked in: http://hg.mozilla.org/comm-central/rev/b9feb6dbd2a9
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.3a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: