Lei Zhang : comctl32: Only update comboex edit box if the mask has CBEIF_TEXT set.
Alexandre Julliard
julliard at winehq.org
Wed Oct 29 09:39:35 CDT 2008
Module: wine
Branch: master
Commit: 913373d2e6fb7b53b5c482748b59fa5bb5630920
URL: http://source.winehq.org/git/wine.git/?a=commit;h=913373d2e6fb7b53b5c482748b59fa5bb5630920
Author: Lei Zhang <thestig at google.com>
Date: Wed Oct 29 02:23:41 2008 -0700
comctl32: Only update comboex edit box if the mask has CBEIF_TEXT set.
---
dlls/comctl32/comboex.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/comboex.c b/dlls/comctl32/comboex.c
index aa5af6e..a5dfc01 100644
--- a/dlls/comctl32/comboex.c
+++ b/dlls/comctl32/comboex.c
@@ -808,7 +808,7 @@ static BOOL COMBOEX_SetItemW (COMBOEX_INFO *infoPtr, COMBOBOXEXITEMW *cit)
if (TRACE_ON(comboex)) COMBOEX_DumpItem (item);
/* if original request was to update edit control, do some fast foot work */
- if (cit->iItem == -1) {
+ if (cit->iItem == -1 && cit->mask & CBEIF_TEXT) {
COMBOEX_SetEditText (infoPtr, item);
RedrawWindow (infoPtr->hwndCombo, 0, 0, RDW_ERASE | RDW_INVALIDATE);
}
More information about the wine-cvs
mailing list