Commit 8d74ef10 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Check the return value of ImageList_GetImageInfo before adjusting the

size.
parent ac2a662a
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment