Author: hbelusca
Date: Sat Dec 19 01:08:11 2015
New Revision: 70399
URL:
http://svn.reactos.org/svn/reactos?rev=70399&view=rev
Log:
[SHELL32]: Tray ToolTips: use the correct buffer size for when calling
MultiByteToWideChar. Addendum to r70360. CORE-10497
Modified:
trunk/reactos/dll/win32/shell32/systray.cpp
Modified: trunk/reactos/dll/win32/shell32/systray.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/systray.…
==============================================================================
--- trunk/reactos/dll/win32/shell32/systray.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/systray.cpp [iso-8859-1] Sat Dec 19 01:08:11 2015
@@ -98,8 +98,8 @@
/* szInfo, szInfoTitle */
if (pnid->uFlags & NIF_INFO)
{
- MultiByteToWideChar(CP_ACP, 0, pnid->szInfo, -1, nidW.szInfo,
_countof(nidW.szTip));
- MultiByteToWideChar(CP_ACP, 0, pnid->szInfoTitle, -1, nidW.szInfoTitle,
_countof(nidW.szTip));
+ MultiByteToWideChar(CP_ACP, 0, pnid->szInfo, -1, nidW.szInfo,
_countof(nidW.szInfo));
+ MultiByteToWideChar(CP_ACP, 0, pnid->szInfoTitle, -1, nidW.szInfoTitle,
_countof(nidW.szInfoTitle));
}
nidW.uTimeout = pnid->uTimeout;