]> khamidou — GitHub mirrors - electron.git/commitdiff
We need a UTF-16 string here
authorPaul Betts <paul@paulbetts.org>
Sat, 7 Feb 2015 01:00:38 +0000 (17:00 -0800)
committerPaul Betts <paul@paulbetts.org>
Sat, 7 Feb 2015 01:00:38 +0000 (17:00 -0800)
atom/browser/native_window_views.cc

index 1150511ec4df15ed23e9bc7fc0654b7b19d50c6c..11cd3c1110a4bea69bc6c05085a59017924edfcc 100644 (file)
@@ -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
 }