Closed
Bug 586187
Opened 14 years ago
Closed 14 years ago
Build failure in LayerManagerD3D9 due to --disable-ipc not also defining Unicode
Categories
(Core :: IPC, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b4
People
(Reporter: Callek, Assigned: Callek)
References
Details
(Keywords: regression)
Attachments
(1 file)
669 bytes,
patch
|
khuey
:
review+
benjamin
:
approval2.0+
|
Details | Diff | Splinter Review |
When LayerManagerD3D9 is compiled, the makefile (if MOZ_IPC) ends up defining UNICODE, which is fine. However the code involved assumes the unicode version of CreateWindow is utilized. This fails in a --disable-ipc build due to the non-unicode version of CreateWindow getting used, and thus a paramater conversion error. This patch just uses CreateWindowW directly. the patch has rs+=khuey over IRC, requesting here for posterity. Whoever pushes feel free to update the commit message in a sane way (e.g. include the bug # of this bug)
Attachment #464712 -
Flags: review?(me)
Attachment #464712 -
Flags: approval2.0?
Comment on attachment 464712 [details] [diff] [review] fix >- mFocusWnd = CreateWindow(kClassName, L"D3D9Window", WS_OVERLAPPEDWINDOW, >+ mFocusWnd = ::CreateWindowW(kClassName, L"D3D9Window", WS_OVERLAPPEDWINDOW, > CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, > NULL, GetModuleHandle(NULL), NULL); Nit: line the continuations of the call up again. rs=me (though this isn't really my code.) Could you file a Core::Build Config followup on AC_DEFINEing UNICODE? FWIW, I also don't think this needs approval since it's a bustage fix.
Attachment #464712 -
Flags: review?(me) → review+
![]() |
||
Comment 2•14 years ago
|
||
Pushed as http://hg.mozilla.org/mozilla-central/rev/41b686bb548a
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b4
Updated•14 years ago
|
Attachment #464712 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 3•14 years ago
|
||
(In reply to comment #1) > Could you file a Core::Build Config followup on AC_DEFINEing UNICODE? Filed Bug 589370
You need to log in
before you can comment on or make changes to this bug.
Description
•