http://bugs.winehq.org/show_bug.cgi?id=8330
------- Additional Comments From emwine@earthlink.net 2007-10-05 18:11 ------- Creating a testcase made it clear. Windows does not respect the limit when EM_REPLACESEL is used for text insertion. Possibly other methods don't respect it either, I'm not sure. But the app uses EM_REPLACESEL to add text, and the control allocates just enough to hold the extra and updates the limit at the same time.
The testcase creates a RICHEDIT, sets the limit to 10, and then inserts 20 'a' characters one at a time using EM_REPLACESEL. You can see in Windows, that the limit is now 20, and you can freely edit up to 20 now. In wine, only 10 a's are added.