Zhiyi Zhang (@zhiyi) commented about programs/winecfg/theme.c:
/* UXTHEME functions not in the headers */
+static const WCHAR *subkey = L"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"; +static const WCHAR *name = L"AppsUseLightTheme"; +static const HKEY root = HKEY_CURRENT_USER;
+typedef struct +{
- DWORD value;
- const WCHAR *descr;
+} AppTheme;
+AppTheme app_themes[] =
app_themes is only used once. Let's move it into init_dialog().