diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-07 10:31:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-07 10:31:56 +0000 |
commit | 767d070330f3fb669495b2e3481f0c8abfcd1300 (patch) | |
tree | 7f602995f26ad699be203d535a469a895268e49c /plugins/Clist_modern/modern_xptheme.cpp | |
parent | 5ad48842d4520b3f34283c6c48be98ddbe9f23d5 (diff) |
- 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
Diffstat (limited to 'plugins/Clist_modern/modern_xptheme.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_xptheme.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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)
|