From 767d070330f3fb669495b2e3481f0c8abfcd1300 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 Jul 2012 10:31:56 +0000 Subject: - one more crash fix; - cache functionality fixed; - strange type 'boolean' removed - all header files included into project git-svn-id: http://svn.miranda-ng.org/main/trunk@811 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/modern_xptheme.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Clist_modern/modern_xptheme.cpp') diff --git a/plugins/Clist_modern/modern_xptheme.cpp b/plugins/Clist_modern/modern_xptheme.cpp index 29d1112e9c..0e1e9dddde 100644 --- a/plugins/Clist_modern/modern_xptheme.cpp +++ b/plugins/Clist_modern/modern_xptheme.cpp @@ -31,7 +31,7 @@ static HRESULT (WINAPI *_xpt_DrawThemeText)(HANDLE, HDC, int, int, LPCWSTR, int #undef MGPROC #define MGPROC(x) GetProcAddress(_xpt_ThemeAPIHandle,x) -#define xptcheck if (!xptModuleLoaded) return +#define xptcheck if ( !xptModuleLoaded) return #define xptlock() EnterCriticalSection(&xptCS) #define xptunlock() LeaveCriticalSection(&xptCS) @@ -43,7 +43,7 @@ static void _sttXptObjectDestructor (void * pt) static int _xpt_ThemeSupport() { if (IsWinVerXPPlus()) { - if (!_xpt_ThemeAPIHandle) { + if ( !_xpt_ThemeAPIHandle) { _xpt_ThemeAPIHandle = GetModuleHandleA("uxtheme"); if (_xpt_ThemeAPIHandle) { _xpt_OpenThemeData = (HANDLE(WINAPI *)(HWND, LPCWSTR))MGPROC("OpenThemeData"); @@ -110,7 +110,7 @@ BOOL xpt_IsThemed(XPTHANDLE xptHandle) { BOOL res = FALSE; xptcheck FALSE; - if (!xptHandle) return FALSE; + if ( !xptHandle) return FALSE; xptlock(); { if (xpt_IsValidHandle(xptHandle) && ((XPTObject*) xptHandle)->hThemeHandle) @@ -124,7 +124,7 @@ BOOL xpt_IsValidHandle(XPTHANDLE xptHandle) { BOOL res = FALSE; xptcheck FALSE; - if (!xptHandle) return FALSE; + if ( !xptHandle) return FALSE; xptlock(); { if (List_IndexOf(xptObjectList, (void*)xptHandle) != -1) -- cgit v1.2.3