diff options
Diffstat (limited to 'c')
-rw-r--r-- | c/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -336,7 +336,7 @@ UpdateTheme() HMODULE hModule; hModule = LoadLibrary(TEXT("uxtheme.dll")); bThemes = hModule && GetProcAddress(hModule,"SetWindowTheme"); - FreeLibrary(hModule); + if (hModule) FreeLibrary(hModule); } if (!bThemes) return; @@ -359,5 +359,6 @@ UpdateTheme() ListView_SetExtendedListViewStyleEx(HDlv, LVS_EX_DOUBLEBUFFER, dwStyle); /* Hide focus rectangles. */ - SendMessage(HWnd, WM_UPDATEUISTATE, MAKEWPARAM(wAction, UISF_HIDEFOCUS), 0); + SendMessage(HElv, WM_UPDATEUISTATE, MAKEWPARAM(wAction, UISF_HIDEFOCUS), 0); + SendMessage(HDlv, WM_UPDATEUISTATE, MAKEWPARAM(wAction, UISF_HIDEFOCUS), 0); } |