Closed
Bug 944913
Opened 11 years ago
Closed 11 years ago
Fix char16_t/wchar_t mismatch in tollkit/.
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: jacek, Assigned: jacek)
References
Details
(Whiteboard: [qa-])
Attachments
(2 files, 1 obsolete file)
22.37 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
4.37 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
This is followup of bug 928351 for toolkit/.
Attachment #8340657 -
Flags: review?(ehsan)
Comment 1•11 years ago
|
||
Comment on attachment 8340657 [details] [diff] [review]
patch.diff
Review of attachment 8340657 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/xre/nsNativeAppSupportWin.cpp
@@ +642,5 @@
>
> // Grab mutex first.
>
> // Build mutex name from app name.
> + ::_snwprintf(reinterpret_cast<wchar_t*>(mMutexName), sizeof mMutexName / sizeof(PRUnichar), L"%s%s%s",
Nit: please add a line break after the first argument.
@@ +1217,5 @@
> nsAutoString temp;
> // Ensure result's buffer is sufficiently big.
> temp.SetLength( argLen );
> // Now get the string contents.
> + DdeQueryString( mInstance, args, (wchar_t*)temp.BeginWriting(), temp.Length(), CP_WINUNICODE );
Nit: reinterpret_cast
Attachment #8340657 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Committed with nits fixed. Thanks for the review.
https://hg.mozilla.org/integration/mozilla-inbound/rev/a41081c1026c
Assignee | ||
Comment 3•11 years ago
|
||
Partial revert due to build bustage on some platforms. That should be easy to fix, I will work on it later.
https://hg.mozilla.org/integration/mozilla-inbound/rev/933c28b72a55
Whiteboard: leave open
Assignee | ||
Comment 4•11 years ago
|
||
It seems like CONVERT_UTF16_TO_XP_CHAR is not worth the problem and confused me in the last try. Here is a new version.
https://tbpl.mozilla.org/?tree=Try&rev=fd327560f46a
Attachment #8342259 -
Flags: review?(ehsan)
Assignee | ||
Comment 5•11 years ago
|
||
Fixed a typo:
https://tbpl.mozilla.org/?tree=Try&rev=41a918e92572
Attachment #8342259 -
Attachment is obsolete: true
Attachment #8342259 -
Flags: review?(ehsan)
Attachment #8342304 -
Flags: review?(ehsan)
Updated•11 years ago
|
Attachment #8342304 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Whiteboard: leave open
Comment 7•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•