Bug 1130935 - mingw fixup.
authorJacek Caban <jacek@codeweavers.com>
Sat, 16 May 2015 15:27:00 +0200
changeset 244161 dcc84a242cde384a8dfa53b326430d2371db71f1
parent 244160 1fcbaf5a20e674cafab40ab5906e5ef533b20655
child 244162 356231081116c8e31d76fe7719283f82ed4b8f10
push id59859
push userjacek@codeweavers.com
push dateSat, 16 May 2015 13:30:22 +0000
treeherdermozilla-inbound@dcc84a242cde [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1130935
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1130935 - mingw fixup.
widget/windows/nsIMM32Handler.cpp
--- a/widget/windows/nsIMM32Handler.cpp
+++ b/widget/windows/nsIMM32Handler.cpp
@@ -244,17 +244,17 @@ nsIMM32Handler::IsVerticalWritingSupport
 nsIMM32Handler::InitKeyboardLayout(nsWindow* aWindow,
                                    HKL aKeyboardLayout)
 {
   UINT IMENameLength = ::ImmGetDescriptionW(aKeyboardLayout, nullptr, 0);
   if (IMENameLength) {
     // Add room for the terminating null character
     sIMEName.SetLength(++IMENameLength);
     IMENameLength =
-      ::ImmGetDescriptionW(aKeyboardLayout, sIMEName.BeginWriting(),
+      ::ImmGetDescriptionW(aKeyboardLayout, wwc(sIMEName.BeginWriting()),
                            IMENameLength);
     // Adjust the length to ignore the terminating null character
     sIMEName.SetLength(IMENameLength);
   } else {
     sIMEName.Truncate();
   }
 
   WORD langID = LOWORD(aKeyboardLayout);