Opened 16 years ago
Closed 16 years ago
#1318 closed Bug (Duplicate)
UDFs char/wchar --> bad numbers of bytes for _MemRead()/_MemWrite()
| Reported by: | Zedna | Owned by: | Gary |
|---|---|---|---|
| Milestone: | Component: | Standard UDFs | |
| Version: | 3.3.1.6 | Severity: | None |
| Keywords: | Cc: |
Description
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.
Attachments (0)
Change History (3)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Fixed up all except:
_GUICtrlTab_SetItem
_GUIToolTip_GetTitleBitMap
They seem to be working with non-text and not sure what is intended atm. Someone else to verify.
comment:3 by , 16 years ago
| Resolution: | → Duplicate |
|---|---|
| Status: | new → closed |
Closed due to no further comments.

This ticket will be fixed as part of the work done for #1336.