https://bugs.winehq.org/show_bug.cgi?id=54190
Bug ID: 54190 Summary: user32:clipboard - GetClipboardData() sets last error on Windows 11 Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
user32:clipboard - GetClipboardData() sets last error on Windows 11:
clipboard.c:989: Test failed: bad last error 1168 clipboard.c:1590: Test failed: unexpected last error 1168 clipboard.c:1470: hwnd 0000000000010010 clipboard.c:1590: Test failed: unexpected last error 1168 clipboard.c:1470: hwnd 00000000002C03C8 clipboard.c:1590: Test failed: unexpected last error 1168 clipboard.c:1733: running from different thread clipboard.c:1470: hwnd 00000000002C03C8 clipboard.c:1590: Test failed: unexpected last error 1168
See https://test.winehq.org/data/patterns.html#user32:clipboard
Where 1608 == ERROR_NOT_FOUND
Windows used to not set "last error" when GetClipboardData() found no match for the requested format which made little sense as it left the caller in the dark about the reason for the failure.
Starting with Windows 11 it sets the error to ERROR_NOT_FOUND which is clearer.
https://bugs.winehq.org/show_bug.cgi?id=54190
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |fgouget@codeweavers.com Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=54190
--- Comment #1 from François Gouget fgouget@codeweavers.com --- Sent a fix: https://gitlab.winehq.org/wine/wine/-/merge_requests/1877