Modify ↓
#2077 closed Bug (Fixed)
_GuiRichEdit_Create Bad HWnd Check
| Reported by: | wraithdu | Owned by: | AdmiralAlkex |
|---|---|---|---|
| Milestone: | 3.3.9.0 | Component: | Standard UDFs |
| Version: | 3.3.8.0 | Severity: | None |
| Keywords: | guirichedit rich edit | Cc: |
Description
In this function, the first line checks if the window handle passed matches the rich edit classname. It should not do this as the window handle passed to this function should never be a rich edit control, rather the parent window. It also has the dubious problem of calling this function with a blank classname on the first call to _Create (the variable is not yet initialized) so it SUCCEEDS. Only subsequent calls fail, return a handle of 0, and an undocumented error code of 1. To fix, revert this handle check to something sane, like IsHWnd() or WinExists(), and document the error code.
Attachments (0)
Change History (2)
comment:1 by , 14 years ago
| Milestone: | → 3.3.9.0 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed by revision [6572] in version: 3.3.9.0