Check button size
This commit is contained in:
parent
8864498065
commit
744059b8bd
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ TaskbarHost::~TaskbarHost() {
|
||||||
|
|
||||||
bool TaskbarHost::SetThumbarButtons(
|
bool TaskbarHost::SetThumbarButtons(
|
||||||
HWND window, const std::vector<ThumbarButton>& buttons) {
|
HWND window, const std::vector<ThumbarButton>& buttons) {
|
||||||
if (!InitailizeTaskbar())
|
if (buttons.size() > kMaxButtonsCount || !InitailizeTaskbar())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
callback_map_.clear();
|
callback_map_.clear();
|
||||||
|
|
Loading…
Reference in a new issue