summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-18 23:41:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-18 23:41:22 +0300
commit79c8ff11ee17dbc4d08523c76cdbb2590097e838 (patch)
treeee34d89b9f3b00536c2f155c1de04fe3b2169323 /src
parent13ce4aa25fa260ed3eddee08a0fca93938b3c6fe (diff)
code cleaning
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/ignore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/ignore.cpp b/src/mir_app/src/ignore.cpp
index a0775b48be..10ee55d64e 100644
--- a/src/mir_app/src/ignore.cpp
+++ b/src/mir_app/src/ignore.cpp
@@ -347,7 +347,7 @@ static INT_PTR IsIgnored(WPARAM wParam, LPARAM lParam)
DWORD mask = GetMask(wParam);
if (lParam < 1 || lParam > IGNOREEVENT_MAX)
return 1;
- return (mask >> (lParam - 1)) & 1;
+ return (masks[lParam-1] & mask) != 0;
}
static INT_PTR Ignore(WPARAM wParam, LPARAM lParam)
@@ -358,7 +358,7 @@ static INT_PTR Ignore(WPARAM wParam, LPARAM lParam)
if (lParam == IGNOREEVENT_ALL)
mask = 0xFFFF;
else
- mask |= 1 << (masks[lParam-1]);
+ mask |= masks[lParam-1];
SaveItemValue(wParam, "Mask1", mask);
return 0;
}