[PATCH] user32: Don't force a combobox repaint on WM_SIZE.

Dmitry Timoshkov dmitry at baikal.ru
Sun Nov 25 11:57:53 CST 2018


This breaks z-order based painting and causes side effects for
applications that during the WM_PAINT processing reference internal
data associated with a not fully initialized window.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 dlls/user32/combo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c
index 31ec6af526..59c2e6484c 100644
--- a/dlls/user32/combo.c
+++ b/dlls/user32/combo.c
@@ -1536,7 +1536,7 @@ static void COMBO_Size( LPHEADCOMBO lphc )
 		  &lphc->buttonRect,
 		  &lphc->droppedRect);
 
-  CBResetPos( lphc, &lphc->textRect, &lphc->droppedRect, TRUE );
+  CBResetPos( lphc, &lphc->textRect, &lphc->droppedRect, FALSE );
 }
 
 
-- 
2.17.1




More information about the wine-devel mailing list