Opened 15 years ago
Closed 15 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 Changed 15 years ago by Valik
comment:2 Changed 15 years ago by Jon
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 Changed 15 years ago by Jon
- Resolution set to Duplicate
- Status changed from new to closed
Closed due to no further comments.
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
This ticket will be fixed as part of the work done for #1336.