From ff3b68fe68dc19d2ffe263b38e9ff44892f0d509 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 29 Oct 2008 02:23:41 -0700 Subject: [PATCH] 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); } -- 1.5.2.2