22 Oct
2024
22 Oct
'24
12:47 p.m.
Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/toolbar.c:
TBUTTON_INFO *btnPtr; INT nRunIndex;
- if ((nIndex < 0) || (nIndex > infoPtr->nNumButtons)) - return -1; - /* check index button */ - btnPtr = &infoPtr->buttons[nIndex]; + if (!TOOLBAR_CheckIndexButton(btnPtr, infoPtr, nIndex)) + return -1;
Don't mix tabs and spaces for indentation. You either use tabs or spaces. Same for other places. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6169#note_85722