uxtheme: Search parts of any state in IsThemePartDefined().
commitf11129d9c47b6ad0f52e4d2e88d17d9a0c2fe552
authorZhiyi Zhang <zzhang@codeweavers.com>
Tue, 1 Mar 2022 07:06:38 +0000 (1 15:06 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 1 Mar 2022 09:36:16 +0000 (1 10:36 +0100)
treeb4038d785abcf3df4b3d02020a8c896ee7f1e6b3
parent6d1ad7d5e35ff526957e2ff6a98a062eab786610
uxtheme: Search parts of any state in IsThemePartDefined().

Tests show that IsThemePartDefined() doesn't use state ID to search parts. If a part of any state is
present, the part is considered as defined. For example, disabled state of part EditText of class
Edit is present in theme files but there is no default state for part EditText. So
IsThemePartDefined(theme, EP_EDITTEXT, 0) failed previously and it should succeed.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52581
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/uxtheme/msstyles.c
dlls/uxtheme/msstyles.h
dlls/uxtheme/system.c
dlls/uxtheme/tests/system.c