Open
Bug 594243
Opened 14 years ago
Updated 2 years ago
nsMapiHook::PopulateCompFieldsForSendDocs should create unique temporary file for attachments.
Categories
(MailNews Core :: Simple MAPI, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: hiro, Unassigned)
References
Details
(Whiteboard: [patchlove])
Attachments
(1 file)
(deleted),
patch
|
Bienvenu
:
review-
|
Details | Diff | Splinter Review |
nsMapiHook::PopulateCompFieldsForSendDocs should create unique temporary file for attachments as well as nsMapiHook::HandleAttachments.
Reporter | ||
Comment 1•14 years ago
|
||
Attachment #472909 -
Flags: review?(bienvenu)
Updated•14 years ago
|
Assignee: nobody → ikezoe
Status: NEW → ASSIGNED
Comment 5•14 years ago
|
||
Comment on attachment 472909 [details] [diff] [review]
Fix
thx for the patch. I'll try it out, but in the meantime, a few comments. I know you're just moving/copying code, but we should take the opportunity to fix it:
space after // please.
+ //Temp Directory
+ nsCOMPtr <nsIFile> pTempFileDir;
current style is no space between nsCOMPtr and < on this or any of the other lines.
can you use NS_ENSURE_SUCCESS(rv, rv); here:
+ rv = pTempDir->Create(nsIFile::DIRECTORY_TYPE, 0777) ;
+ if (NS_FAILED(rv)) return rv ;
and same here since I don't think you need to check pTempFile, if rv is success.;
+ rv = pTempDir->Clone(getter_AddRefs(pTempFile));
+ if (NS_FAILED(rv) || !pTempFile)
+ return rv;
Comment 6•14 years ago
|
||
Comment on attachment 472909 [details] [diff] [review]
Fix
this doesn't compile because nsMapiHook::CreateUniqueTempFile isn't defined in the header file.
Attachment #472909 -
Flags: review?(bienvenu) → review-
Updated•9 years ago
|
Assignee: hiikezoe → nobody
Status: ASSIGNED → NEW
Whiteboard: [patchlove]
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•