https://bugs.winehq.org/show_bug.cgi?id=54558
Bug ID: 54558 Summary: dinput:device8 - test_overlapped_format() sometimes gets a permission denied on Windows Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: dinput Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
dinput:device8 - test_overlapped_format() sometimes gets a permission denied on Windows. When that happens all the tests that follow fail too which makes for a lot of failures.
device8.c:347: Test failed: 0x700: Acquire returned 0x80070005 device8.c:356: Test failed: 0x700: WaitForSingleObject returned 0x102 device8.c:360: Test failed: 0x700: WaitForSingleObject returned 0x102 device8.c:364: Test failed: 0x700: GetDeviceData returned 0x8007000c device8.c:371: Test failed: 0x700: WaitForSingleObject returned 0x102 device8.c:375: Test failed: 0x700: GetDeviceData returned 0x8007000c device8.c:376: Test failed: 0x700: got count 10 ... device8.c:408: Test failed: 0x700: Acquire returned 0x80070005 ... device8.c:1972: Test failed: 0x500: Acquire returned 0x80070005 device8.c:1974: Test failed: 0x500: Acquire returned 0x80070005 device8.c:1983: Test failed: 0x500: WaitForSingleObject returned 0x102 ... device8.c:2002: Test failed: 0x500: Acquire returned 0x80070005 device8.c:2011: Test failed: 0x500: WaitForSingleObject returned 0x102 ...
See https://test.winehq.org/data/patterns.html#dinput:device8
Where 0x80070005 == E_ACCESSDENIED
Maybe the permission denied error happens when a previous test triggered a UAC prompt which then grabbed the keyboard and mouse to get a secure answer?
In any case this has happened for a long time but since 2022-11-21 it seems to only happen on w1064v1507, w7u-adm and w7u-el.