diff options
author | Alexey Kulakov <panda75@bk.ru> | 2012-06-22 13:22:39 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2012-06-22 13:22:39 +0000 |
commit | 3e7048d2037b42781182c895ef56d5f51b1b5f35 (patch) | |
tree | 5c1c32bf5469e4688a020b7c85d36328a853b37c /plugins/TopToolBar/toolbar.cpp | |
parent | 724eb80f574a1a46ade6d58d21ce1296064f44a7 (diff) |
small fixes + cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@528 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/toolbar.cpp')
-rw-r--r-- | plugins/TopToolBar/toolbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp index a6869d579b..f69b2bf894 100644 --- a/plugins/TopToolBar/toolbar.cpp +++ b/plugins/TopToolBar/toolbar.cpp @@ -435,7 +435,7 @@ INT_PTR TTBGetOptions(WPARAM wParam, LPARAM lParam) switch(LOWORD(wParam)) {
case TTBO_FLAGS:
- retval = b->dwFlags & (!TTBBF_PUSHED);
+ retval = b->dwFlags & (~TTBBF_PUSHED);
if (b->bPushed)
retval |= TTBBF_PUSHED;
break;
@@ -450,7 +450,7 @@ INT_PTR TTBGetOptions(WPARAM wParam, LPARAM lParam) if (lpTTB->cbSize != sizeof(TTBButton))
break;
- lpTTB->dwFlags = b->dwFlags & (!TTBBF_PUSHED);
+ lpTTB->dwFlags = b->dwFlags & (~TTBBF_PUSHED);
if (b->bPushed)
lpTTB->dwFlags |= TTBBF_PUSHED;
|