Author: akhaldi Date: Sat Apr 25 12:06:23 2015 New Revision: 67406
URL: http://svn.reactos.org/svn/reactos?rev=67406&view=rev Log: [UXTHEME] Apply Wine commit b12f73a by Mark Harmstone: Assume imagecount to be 1 if unspecified.
Modified: trunk/reactos/dll/win32/uxtheme/draw.c
Modified: trunk/reactos/dll/win32/uxtheme/draw.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/uxtheme/draw.c?re... ============================================================================== --- trunk/reactos/dll/win32/uxtheme/draw.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/uxtheme/draw.c [iso-8859-1] Sat Apr 25 12:06:23 2015 @@ -241,6 +241,9 @@
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;