From 871d7729702479eaebcf66109804e6bd3ebc5277 Mon Sep 17 00:00:00 2001 From: Weitian Leung Date: Thu, 5 Apr 2018 21:25:58 +0800 Subject: [PATCH] Fix a crash due to pass NULL to std::wstring VC++ 2017 version internal uses wcslen to count the string length, which requires not NULL --- LangBarButton.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/LangBarButton.cpp b/LangBarButton.cpp index c6a4f39..d0e031e 100644 --- a/LangBarButton.cpp +++ b/LangBarButton.cpp @@ -28,7 +28,6 @@ namespace Ime { LangBarButton::LangBarButton(TextService* service, const GUID& guid, UINT commandId, const wchar_t* text, DWORD style): textService_(service), - tooltip_(NULL), commandId_(commandId), menu_(NULL), icon_(NULL),