mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Check the return value of ImageList_GetImageInfo before adjusting the
size.
This commit is contained in:
parent
ac2a662a64
commit
8d74ef1030
1 changed files with 1 additions and 2 deletions
|
@ -400,8 +400,7 @@ static void COMBOEX_ReSize (COMBOEX_INFO *infoPtr)
|
|||
|
||||
COMBOEX_GetComboFontSize (infoPtr, &mysize);
|
||||
cy = mysize.cy + CBE_EXTRA;
|
||||
if (infoPtr->himl) {
|
||||
ImageList_GetImageInfo(infoPtr->himl, 0, &iinfo);
|
||||
if (infoPtr->himl && ImageList_GetImageInfo(infoPtr->himl, 0, &iinfo)) {
|
||||
cy = max (iinfo.rcImage.bottom - iinfo.rcImage.top, cy);
|
||||
TRACE("upgraded height due to image: height=%d\n", cy);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue