﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1318	UDFs char/wchar --> bad numbers of bytes for _MemRead()/_MemWrite()	Zedna	Gary	"According to Ticket #1317 there is similar ANSI/Unicode problem also with _MemRead()/_MemWrite()where is read/written incorrect (only half of bytes in some cases) number of bytes.
In unicode version should be $iBuffer = 2 * $iBuffer --> in _GUICtrlListView_FindItem()

Such problem with bad number of bytes for _MemRead/MemWrite is in these functions (in some cases there are also hardcoded 4096 instead of 2*4096 or better dynamically computed sizes):

_GUICtrlListView_FindItem
_GUICtrlListView_GetEmptyText
_GUICtrlListView_GetItemText
_GUICtrlStatusBar_GetTipText
_GUICtrlTab_SetItem
_GUIToolTip_GetTitleBitMap
_GUIToolTip_GetTitleText
_GUICtrlTreeView_GetText

As example of good version of this you can look at
_GUICtrlListView_SetBkImage() or _GUICtrlStatusBar_SetText() or other UDFs where all sizes are handled correctly.
"	Bug	closed		Standard UDFs	3.3.1.6	None	Duplicate		
