http://bugs.winehq.com/show_bug.cgi?id=1280
Summary: edit control bug - EM_LIMITTEXT does not work Product: Wine Version: 20030115 Platform: PC OS/Version: other Status: UNCONFIRMED Severity: major Priority: P2 Component: wine-gui AssignedTo: wine-bugs@winehq.com ReportedBy: felipewd@elipse.com.br
When you try to limit the maximum chars accepted in an edit control by doing something like this:
SendMessage(hwndEdit, EM_LIMITTEXT, 10, 0);
Wine simply ignores it, and let the user type more than 10 (in this example) characters.
This looks bad, because the user could eventually overflow the allocated memory for the dialog, making the program crash.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://bugs.winehq.com/show_bug.cgi?id=1280. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.