combo: Apperent typo

Aric Stewart aric at codeweavers.com
Fri Feb 2 15:04:23 CST 2007


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(-)
-------------- next part --------------
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;


More information about the wine-patches mailing list