Alexandre Julliard a écrit :
Eric Pouech eric.pouech@orange.fr writes:
Alexandre Julliard a écrit :
Module: wine Branch: master Commit: dcec342b50524562844f64d43d423ed2c83c1f97 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dcec342b50524562844f64d43d...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Dec 11 14:52:28 2009 +0100
user32: Add a thunking mechanism for 16-bit edit word break procedures.
Alexandre, shouldn't the thunk be released in EDIT_WM_NCDestroy upon EDITSTATE destruction ?
No, the thunks are associated to a function, not to a window, so they never get freed. It's the same idea as for the winproc thunks.
do you recommend this way of doing being the recommanded way for all the thunks which have been recently added ie assuming the app will only provide a limited number of functions being passed to the thunks, rather than trying to allocate/free the thunks when possible ?