https://bugs.winehq.org/show_bug.cgi?id=54156
Bug ID: 54156 Summary: comctl32:edit & user32:edit - test_paste() sometimes gets an empty string on Windows Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
comctl32:edit - test_paste() sometimes gets an empty string on Windows
edit.c:3238: Test failed: got 0
See https://test.winehq.org/data/patterns.html#comctl32:edit
This happens on Windows 10 1809 to 21H2 a bit less than 3 times per month.
Where 0 is the length of the string in the field we pasted to. So that field is empty instead of having received the string we pasted.
We can also get this failure in user32:edit (2022-11-15 w10pro64v1809):
edit.c:3211: Test failed: got 0
See https://test.winehq.org/data/patterns.html#user32:edit
But the case above is for the single-line to single-line case and there is also the same issue happening in the multi-line to multi-line case (2022-10-25 w11pro64-amd):
edit.c:3240: Test failed: got 0
So it's a pretty general, if rare (only 4 known instances in 6 months), problem.
Note that while one could expect this to be caused by yet another OpenClipboard() failure, like in bug 53276, there is no failure message indicating this to be the case.