Fix menu can be too small

import/tags/kmeleon75_1
Dorian 7 years ago
parent 993fbac1c1
commit f1282750eb
  1. 2
      k-meleon/KmMenu.cpp

@ -718,7 +718,7 @@ void KmMenuService::MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
return;
}
CAutoPtr<TCHAR> text(new TCHAR[mi.cch+1]);
CAutoPtr<TCHAR> text(new TCHAR[++mi.cch+1]);
mi.dwTypeData = text;
mLastActivated->GetMenuItemInfo(lpMeasureItemStruct->itemID, &mi);

Loading…
Cancel
Save