Bug 618694 - xulrunner help dialog text has trailing garbage, r+a=bsmedberg
authorSean Bright <sean.bright@gmail.com>
Sun, 12 Dec 2010 08:09:00 -0800
changeset 59664 a79259022980d65c0b322937336349aba843b4f0
parent 59663 3aab15091aa01c46fe6f17cb90be7ad06d451e0a
child 59665 0362605d2623082cb094688f8bca69efd21e51f9
push id17721
push userphilringnalda@gmail.com
push dateSat, 25 Dec 2010 03:31:17 +0000
treeherdermozilla-central@0ab0603bea99 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs618694
milestone2.0b9pre
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 618694 - xulrunner help dialog text has trailing garbage, r+a=bsmedberg
xulrunner/app/nsXULRunnerApp.cpp
--- a/xulrunner/app/nsXULRunnerApp.cpp
+++ b/xulrunner/app/nsXULRunnerApp.cpp
@@ -80,17 +80,17 @@ static void Output(PRBool isError, const
   if (msg)
   {
     UINT flags = MB_OK;
     if (isError)
       flags |= MB_ICONERROR;
     else
       flags |= MB_ICONINFORMATION;
     
-    wchar_t wide_msg[1024];
+    wchar_t wide_msg[2048];
     MultiByteToWideChar(CP_ACP,
 			0,
 			msg,
 			-1,
 			wide_msg,
 			sizeof(wide_msg) / sizeof(wchar_t));
     
     MessageBoxW(NULL, wide_msg, L"XULRunner", flags);