projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e21ccdf
)
[UXTHEME] Apply Wine commit b12f73a by Mark Harmstone: Assume imagecount to be 1...
author
Amine Khaldi
<amine.khaldi@reactos.org>
Sat, 25 Apr 2015 12:06:23 +0000
(12:06 +0000)
committer
Amine Khaldi
<amine.khaldi@reactos.org>
Sat, 25 Apr 2015 12:06:23 +0000
(12:06 +0000)
svn path=/trunk/; revision=67406
reactos/dll/win32/uxtheme/draw.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/uxtheme/draw.c
b/reactos/dll/win32/uxtheme/draw.c
index
abc4153
..
d7081cc
100644
(file)
--- a/
reactos/dll/win32/uxtheme/draw.c
+++ b/
reactos/dll/win32/uxtheme/draw.c
@@
-241,6
+241,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;