http://bugs.winehq.org/show_bug.cgi?id=4742
wine.dev@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.dev@web.de
------- Additional Comments From wine.dev@web.de 2006-14-03 12:42 ------- A second "LocalFree()" on a memory-handle corrupt our Heap, but is detected and handled graceful in windows. (I need to move this Part of my tests to "dlls/kernel/tests/heap.c")
Your source is similar to the relevant code from NoteXpad, but you use LocalReAlloc() after EM_SETHANDLE.
when handling the EM_SETHANDLE message the current code frees the old memory
This is not the case according to a simple test. (we free the internal UNICODE copy of the ANSI-Data)
I need to learn more about the internal behavior of the edit-control first.