https://bugs.winehq.org/show_bug.cgi?id=55777
Bug ID: 55777 Summary: user32:win - test_GetWindowModuleFileName() sometimes unexpectedly gets a filename on Windows 7 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:win - test_GetWindowModuleFileName() sometimes unexpectedly gets a filename on Windows 7:
win.c:8792: Test failed: expected 0, got 47
See https://test.winehq.org/data/patterns.html#user32:win
There are two known instances so far: * 2023-07-24 win7_newtb-w7u-es -> got 47 * 2023-10-11 win7_newtb-w7u-de -> got 47
By chance I managed to reproduce the issue with extra information:
win.c:8800: Test failed: expected 0, got 41 'C:\Users\Public\Documents\user32_test.exe' win.c:8801: Test failed: expected ERROR_MOD_NOT_FOUND, got 0
So for once, instead of failing to find the module corresponding to the systray, GetWindowModuleFileName() attributed it to the test executable. That or hwnd did not in fact correspond to the systray but was not NULL either (otherwise we would have gotten ERROR_INVALID_WINDOW_HANDLE).