Sebastian Lackner sebastian@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?