We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a293c85 commit 4cd727aCopy full SHA for 4cd727a
SimpleWindowSwitcher/sws_WindowSwitcher.c
@@ -497,6 +497,8 @@ static sws_window _sws_WindowSwitcher_WindowList_PushToFront(sws_WindowSwitcher*
497
sws_window zero;
498
ZeroMemory(&zero, sizeof(sws_window));
499
sws_vector_PushBack(&(_this->pHWNDList), &zero);
500
+ // Reaquire list as vector may have been reallocated
501
+ pHWNDList = _this->pHWNDList.pList;
502
for (int i = _this->pHWNDList.cbSize - 1; i > 0; i--)
503
{
504
pHWNDList[i] = pHWNDList[i - 1];
0 commit comments