Skip to content
Snippets Groups Projects
Commit 3d134024 authored by Yuri Chebotarev's avatar Yuri Chebotarev
Browse files

fix EXT-4858 "Detecting Hardware..." not showing correctly in non-English languages with Viewer 2.0

reviewed Vadim Savchuk
https://codereview.productengine.com/secondlife/r/317/

--HG--
branch : product-engine
parent 62214e08
No related branches found
No related tags found
No related merge requests found
......@@ -2877,8 +2877,13 @@ void LLSplashScreenWin32::updateImpl(const std::string& mesg)
{
if (!mWindow) return;
int output_str_len = MultiByteToWideChar(CP_UTF8, 0, mesg.c_str(), mesg.length(), NULL, 0);
if( output_str_len>1024 )
return;
WCHAR w_mesg[1024];
mbstowcs(w_mesg, mesg.c_str(), 1024);
MultiByteToWideChar (CP_UTF8, 0, mesg.c_str(), mesg.length(), w_mesg, output_str_len);
SendDlgItemMessage(mWindow,
666, // HACK: text id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment