From a7f6d78406b536bd87b608856628f93d94e7a8dd Mon Sep 17 00:00:00 2001 From: Zhiyi Zhang Date: Thu, 11 Nov 2021 15:03:45 +0800 Subject: [PATCH] comctl32/button: Use correct state for BS_3STATE and BS_AUTO3STATE buttons. BS_3STATE and BS_AUTO3STATE are check boxes. Fix BS_3STATE and BS_AUTO3STATE buttons drawing indeterminate state as unchecked. Signed-off-by: Zhiyi Zhang Signed-off-by: Alexandre Julliard --- dlls/comctl32/button.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/button.c b/dlls/comctl32/button.c index 19febd8b6ac..b612273c0c1 100644 --- a/dlls/comctl32/button.c +++ b/dlls/comctl32/button.c @@ -427,10 +427,10 @@ static int get_draw_state(const BUTTON_INFO *infoPtr) return pb_states[state]; case BS_CHECKBOX: case BS_AUTOCHECKBOX: - return cb_states[check_state][state]; - case BS_RADIOBUTTON: case BS_3STATE: case BS_AUTO3STATE: + return cb_states[check_state][state]; + case BS_RADIOBUTTON: case BS_AUTORADIOBUTTON: return rb_states[check_state][state]; case BS_GROUPBOX: