Author: jimtabor
Date: Fri May 16 21:05:37 2014
New Revision: 63318
URL:
http://svn.reactos.org/svn/reactos?rev=63318&view=rev
Log:
[ConSrv]
- Readjust the bytes to wide character size.
Modified:
trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
Modified: trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/winsrv/consrv…
==============================================================================
--- trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c [iso-8859-1]
(original)
+++ trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c [iso-8859-1] Fri May
16 21:05:37 2014
@@ -262,7 +262,7 @@
mii.cbSize = sizeof(mii);
mii.fMask = MIIM_STRING;
mii.dwTypeData = szMenuStringBack;
- mii.cch = sizeof(szMenuStringBack);
+ mii.cch = sizeof(szMenuStringBack)/sizeof(WCHAR);
GetMenuItemInfoW(hMenu, SC_CLOSE, FALSE, &mii);
@@ -271,6 +271,7 @@
{
mii.cch = (int)( ptrTab - szMenuStringBack);
RtlZeroMemory((PVOID)ptrTab, mii.cch);
+
mii.cch = wcslen(szMenuStringBack);
SetMenuItemInfoW(hMenu, SC_CLOSE, FALSE, &mii);