The listview bug is caused by passing the incorrect index to the LISTVIEW_SortItems callers custom compare function. If we pass the copied array indices, which are different because of the sorting, the caller is going to use those indices for their unsorted array which don't match.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56140
--
v5: comctl32: Fix sorting for listview.
comctl32/tests: Add test for listview sorting order.
https://gitlab.winehq.org/wine/wine/-/merge_requests/6160
On Wed Jul 31 13:55:13 2024 +0000, Zhiyi Zhang wrote:
> I don't think you're going in the right direction. Why did you remove
> all this code? You should be able to parse the resolution from the
> command line and set it as the resolution for the virtual desktop window
> and resolve the regression.
There is no need for parsing, because parse resolution is doing by explorer.exe, explorer.exe parse resolution by arguments and setting by NtUserChangeDisplaySetting
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/6150#note_77582