[PATCH] winex11.drv: Use GMEM_FIXED memory for storing clipboard data.

Alexandre Julliard julliard at winehq.org
Thu Apr 21 04:30:35 CDT 2016


Rafał Harabień <rafalh1992 at o2.pl> writes:

> Tested behavior in Win 10. MSDN says clipboard uses GMEM_SHARED handles but its not true.
> Some applications depends on GetClipboardData returning valid pointer to data instead of handle.
> Commit fixes pasting from clipboard in Multi Theft Auto: San Andreas.
>
> Signed-off-by: Rafał Harabień <rafalh1992 at o2.pl>
> ---
>  dlls/user32/tests/clipboard.c | 58 ++++++++++++++++++++++++++++++++
>  dlls/winex11.drv/clipboard.c  | 77 +++++++++++++++++++++++++++++++++----------
>  2 files changed, 117 insertions(+), 18 deletions(-)

This breaks the tests:

../../../tools/runtest -q -P wine -T ../../.. -M ole32.dll -p ole32_test.exe.so clipboard && touch clipboard.ok
clipboard.c:897: Test failed: got 0x145048
clipboard.c:914: Test failed: got 0x145048
Makefile:184: recipe for target 'clipboard.ok' failed

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list