Skip to content

Commit

Permalink
virtual-desktop-taskbar-order: Add missed CTaskBtnGroup_GetGroup call…
Browse files Browse the repository at this point in the history
… instead of hardcoded offset access
  • Loading branch information
m417z committed Sep 9, 2024
1 parent 8a5935e commit 4fdb2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/virtual-desktop-taskbar-order.wh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void OnButtonGroupInserted(LONG_PTR lpTaskSwLongPtr,
j++) {
LONG_PTR* check_button_group = button_groups[j];
LONG_PTR* check_task_group =
(LONG_PTR*)check_button_group[4];
(LONG_PTR*)CTaskBtnGroup_GetGroup(check_button_group);
if (g_taskGroupVirtualDesktopReleased == check_task_group) {
// The current item in lpArray is from the same group
// of at least one of the items in button_groups to the
Expand Down

0 comments on commit 4fdb2f8

Please sign in to comment.