Rafał Harabień <rafalh1992(a)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(a)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(a)winehq.org