Commit b12f73a5 authored by Mark Harmstone's avatar Mark Harmstone Committed by Alexandre Julliard

uxtheme: Assume imagecount to be 1 if unspecified.

parent 4c6427d0
......@@ -257,6 +257,9 @@ static HRESULT UXTHEME_LoadImage(HTHEME hTheme, HDC hdc, int iPartId, int iState
imagenum = max (min (imagecount, iStateId), 1) - 1;
GetObjectW(*hBmp, sizeof(bmp), &bmp);
if(imagecount < 1) imagecount = 1;
if(imagelayout == IL_VERTICAL) {
int height = bmp.bmHeight/imagecount;
bmpRect->left = 0;
......
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