[2/2] user32: Also release GMEM_FIXED data in free_cached_data.

Alexandre Julliard julliard at winehq.org
Sat Oct 1 07:12:20 CDT 2016


Sebastian Lackner <sebastian at fds-team.de> writes:

> I assume the purpose of the check was to detect GMEM_MOVEABLE handles, in order to mimic
> WinXP/Win2003 behavior for SetClipboardData. Unfortunately, the cache implemented in
> GetClipboardData() also uses GMEM_FIXED, which means even sane apps will leak memory
> on each cache flush.
>
> Tests suggest that Windows Vista+ also release GMEM_FIXED pointers passed to
> SetClipboardData, so there is probably no need to keep this hack.

That's probably OK, but could you please add the test case too?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list