diff options
Diffstat (limited to 'c')
-rw-r--r-- | c/main.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -314,16 +314,17 @@ UpdateTheme() static int bThemes = -1; switch (bThemes) { + case 0: + return; case -1: { HMODULE hModule; hModule = LoadLibrary(TEXT("uxtheme.dll")); bThemes = hModule && GetProcAddress(hModule,"SetWindowTheme"); - break; } - case 1: - bThemeActive = IsThemeActive(); - LvSetTheme(HElv, bThemeActive); - LvSetTheme(HDlv, bThemeActive); } + + bThemeActive = IsThemeActive(); + LvSetTheme(HElv, bThemeActive); + LvSetTheme(HDlv, bThemeActive); } |