Module: wine
Branch: master
Commit: ea60a508b1810ea9f901f0cd4cf5f0bae4690525
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ea60a508b1810ea9f901f0cd4…
Author: Aric Stewart <aric(a)codeweavers.com>
Date: Fri Feb 2 15:04:23 2007 -0600
user32: We are calculating the height for the drop down based on
number of items however the if statement used nIHeight (just the
height of 1 item) and not nHeight (the height all the items).
---
dlls/user32/combo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c
index badb2ef..7e54ea8 100644
--- a/dlls/user32/combo.c
+++ b/dlls/user32/combo.c
@@ -1116,7 +1116,7 @@ static void CBDropDown( LPHEADCOMBO lphc
if (nHeight < nDroppedHeight - COMBO_YBORDERSIZE())
nDroppedHeight = nHeight + COMBO_YBORDERSIZE();
- if (nDroppedHeight < nIHeight)
+ if (nDroppedHeight < nHeight)
{
if (nItems < 5)
nDroppedHeight = (nItems+1)*nIHeight;