diff options
Diffstat (limited to 'plugins/UserInfoEx/ctrl_button.cpp')
-rw-r--r-- | plugins/UserInfoEx/ctrl_button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserInfoEx/ctrl_button.cpp b/plugins/UserInfoEx/ctrl_button.cpp index d8cbafd20b..8278b5b07d 100644 --- a/plugins/UserInfoEx/ctrl_button.cpp +++ b/plugins/UserInfoEx/ctrl_button.cpp @@ -562,7 +562,7 @@ static LRESULT CALLBACK Button_WndProc(HWND hwndBtn, UINT uMsg, WPARAM wParam, L if (bct->dwStyle & MBS_PUSHBUTTON) return bct->pbState ? BST_CHECKED : BST_UNCHECKED;
return 0;
case BUTTONSETDEFAULT:
- bct->defbutton = wParam ? 1 : 0;
+ bct->defbutton = (wParam != 0);
InvalidateRect(bct->hwnd, NULL, TRUE);
break;
case BUTTONADDTOOLTIP:
|