edit control bug - EM_LIMITTEXT does not work

Felipe W Damasio felipewd at elipse.com.br
Fri Feb 14 09:47:00 CST 2003


	Hi,

	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.

	Cesar Mello (mello at elipse.com.br) coded a little program to show this 
limitation:

ftp://ftp.elipse.com.br/pub/about1/about1-src.tar.gz

	I just created a bug entry on bugs.winehq:

http://bugs.winehq.com/show_bug.cgi?id=1280

	Could someone help me with this?

	Thanks a lot and kind regards,

Felipe




More information about the wine-devel mailing list