diff --git a/dll/win32/uxtheme/draw.c b/dll/win32/uxtheme/draw.c index c18a5986c47..521008b5805 100644 --- a/dll/win32/uxtheme/draw.c +++ b/dll/win32/uxtheme/draw.c @@ -178,6 +178,10 @@ static PTHEME_PROPERTY UXTHEME_SelectImage(HTHEME hTheme, HDC hdc, int iPartId, return MSSTYLES_FindProperty(pClass, iPartId, iStateId, TMT_FILENAME, TMT_IMAGEFILE1); } else if(imageselecttype == IST_SIZE) { +#ifdef __REACTOS__ + if(pRect) + { +#endif POINT size = {pRect->right-pRect->left, pRect->bottom-pRect->top}; POINT reqsize; for(i=4; i>=0; i--) { @@ -218,6 +222,10 @@ static PTHEME_PROPERTY UXTHEME_SelectImage(HTHEME hTheme, HDC hdc, int iPartId, } /* If an image couldn't be selected, choose the smallest one */ return MSSTYLES_FindProperty(pClass, iPartId, iStateId, TMT_FILENAME, TMT_IMAGEFILE1); +#ifdef __REACTOS__ + } +#endif + } return NULL; }