Closed
Bug 422776
Opened 16 years ago
Closed 16 years ago
reduce narrow windows API calls in imagelib
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: blassey, Assigned: crowderbt)
References
Details
Attachments
(1 file, 1 obsolete file)
6.65 KB,
patch
|
pavlov
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #309225 -
Flags: review?(pavlov)
Assignee | ||
Comment 1•16 years ago
|
||
Review ping?
Comment 2•16 years ago
|
||
you have: + PRUnichar specialNativePath[MAX_PATH]; + ::SHGetPathFromIDListW(idList, specialNativePath); + ::GetShortPathNameW(specialNativePath, specialNativePath, sizeof(specialNativePath)); Please see: http://msdn.microsoft.com/en-us/library/aa364989(VS.85).aspx I think that the patch should use sizeof(specialNativePath)/sizeof(specialNativePath[0]) to have the count of chars (cch). Please note that NS_ARRAY_LENGTH could be used here and in other places. It is defined here: http://mxr.mozilla.org/mozilla-central/source/xpcom/glue/nsMemory.h
Assignee | ||
Comment 3•16 years ago
|
||
Updates some buffer issues (as Bernard noticed) and brings in line with trunk.
Assignee: nobody → crowder
Attachment #309225 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #334779 -
Flags: review?(pavlov)
Attachment #309225 -
Flags: review?(pavlov)
Comment 4•16 years ago
|
||
(In reply to comment #3) > Created an attachment (id=334779) [details] > v2 Looks good. While you're touching that file, you might consider fixing bug 284156 along with it. You'd just have to do: - IMalloc* pMalloc; - hr = ::SHGetMalloc(&pMalloc); - if (SUCCEEDED(hr)) { - pMalloc->Free(idList); - pMalloc->Release(); - } + ::CoTaskMemFree(idList); This is very safe, as SHGetMalloc is deprecated per MSDN.
Updated•16 years ago
|
Attachment #334779 -
Flags: review?(pavlov) → review+
Assignee | ||
Comment 5•16 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/e17e0d80a962
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 6•15 years ago
|
||
Can patch for this bug cause Bug 454247?
Assignee | ||
Comment 7•15 years ago
|
||
Certainly possible, would you care to try rolling it back?
Comment 8•15 years ago
|
||
(In reply to comment #7) > Certainly possible, would you care to try rolling it back? Unfortunately I don't have windows build environment, I'm using linux.
You need to log in
before you can comment on or make changes to this bug.
Description
•