https://bugs.winehq.org/show_bug.cgi?id=55268
Bug ID: 55268 Summary: user32:cursoricon - LoadImageA() fails in test_monochrome_icon() on Windows 8+ 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:cursoricon - LoadImageA() fails in test_monochrome_icon() on Windows 8+:
cursoricon.c:2853: monochrome, bitmap info cursoricon.c:2917: Test failed: LoadImage() failed with 0.
See https://test.winehq.org/data/patterns.html#user32:cursoricon
The call below has been failing systematically on Windows 8+ for more than 8 months:
handle = LoadImageA(NULL, "icon.ico", IMAGE_ICON, 0, 0, LR_LOADFROMFILE); ok(handle != NULL || broken(use_core_info && handle == NULL), /* Win 8, 10 */ "LoadImage() failed with %lu.\n", GetLastError());
So on Windows 8+ we expect to get NULL only if use_core_info is true but in fact we get NULL even if it is false. That makes this test pretty pointless.