Zero initialize the reserved bytes in the toolbar details returned by
TOOLBAR_GetButton().
This commit is contained in:
parent
5eb88a08a2
commit
9e3772f699
|
@ -3026,6 +3026,8 @@ TOOLBAR_GetButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
lpTbb->idCommand = btnPtr->idCommand;
|
lpTbb->idCommand = btnPtr->idCommand;
|
||||||
lpTbb->fsState = btnPtr->fsState;
|
lpTbb->fsState = btnPtr->fsState;
|
||||||
lpTbb->fsStyle = btnPtr->fsStyle;
|
lpTbb->fsStyle = btnPtr->fsStyle;
|
||||||
|
lpTbb->bReserved[0] = 0;
|
||||||
|
lpTbb->bReserved[1] = 0;
|
||||||
lpTbb->dwData = btnPtr->dwData;
|
lpTbb->dwData = btnPtr->dwData;
|
||||||
lpTbb->iString = btnPtr->iString;
|
lpTbb->iString = btnPtr->iString;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue