Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/system.c:
if(bThemeActive) {
const WCHAR *p;
pszAppName = UXTHEME_GetWindowProperty(hwnd, atSubAppName, szAppBuff, ARRAY_SIZE(szAppBuff)); /* If SetWindowTheme was used on the window, that overrides the class list passed to this function */ pszUseClassList = UXTHEME_GetWindowProperty(hwnd, atSubIdList, szClassBuff, ARRAY_SIZE(szClassBuff)); if(!pszUseClassList) pszUseClassList = pszClassList;
if (pszUseClassList)
p = wcschr(pszClassList, ':');
if (p)
Let's use StrStrW to check "::" instead. It's clearer that way.