Closed Bug 284324 Opened 20 years ago Closed 19 years ago

SHGetMalloc API call is deprecated (in SpecialSystemDirectory.cpp)

Categories

(Core :: XPCOM, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: David.R.Gardiner, Assigned: David.R.Gardiner)

References

Details

Attachments

(1 obsolete file)

According to the MSDN documentation (http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shgetmalloc.asp) "This function should no longer be used. Use the CoTaskMemFree and CoTaskMemAlloc functions in its place" This appears to be used in XPCOM in the following files: /xpcom/io/SpecialSystemDirectory.cpp, line 197 -- if (!SUCCEEDED(SHGetMalloc(&pMalloc))) /xpcom/obsolete/nsSpecialSystemDirectory.cpp, line 216 -- if (!SUCCEEDED(SHGetMalloc(&pMalloc)))
Assignee: dougt → david.gardiner
Status: NEW → ASSIGNED
Attachment #176125 - Flags: review?(dougt)
Comment on attachment 176125 [details] [diff] [review] Use CoTaskMemAlloc and CoTaskMemFree r=dougt Thanks for the patch. Do you need someone to check this in?
Attachment #176125 - Flags: review?(dougt) → review+
Yes please! -dave
Attachment #176125 - Flags: superreview?(brendan)
QA Contact: xpcom
Did this ever get checked in?
Whiteboard: [checkin needed]
This was fixed for the patch for bug 359808.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
Attachment #176125 - Attachment is obsolete: true
Attachment #176125 - Flags: superreview?(brendan)
Whiteboard: [checkin needed]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: