From: Paul Betts Date: Sat, 7 Feb 2015 01:00:38 +0000 (-0800) Subject: We need a UTF-16 string here X-Git-Tag: v0.21.3~14^2~5 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ef869fb2ff9c85cebfa0fff2ddfd8e7444175a0d;p=electron.git We need a UTF-16 string here --- diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 1150511e..11cd3c11 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -630,9 +630,10 @@ void NativeWindowViews::SetOverlayIcon( HWND frame = views::HWNDForNativeWindow(GetNativeWindow()); + std::wstring wstr = std::wstring(description.begin(), description.end()); taskbar->SetOverlayIcon(frame, - IconUtil::CreateHICONFromSkiaBitmap(overlay.AsBitmap()), - description); + IconUtil::CreateHICONFromSkBitmap(overlay.AsBitmap()), + wstr.c_str()); #endif }