aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c/main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/c/main.c b/c/main.c
index f22eabf..4b3a91d 100644
--- a/c/main.c
+++ b/c/main.c
@@ -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);
}