From d04e6d87584b145046a62c660fac99bfd1acc947 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 19 May 2015 18:36:48 +0000 Subject: AIM: -minor bugfixes git-svn-id: http://svn.miranda-ng.org/main/trunk@13697 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/AimOscar/src/ui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/AimOscar/src/ui.cpp') diff --git a/protocols/AimOscar/src/ui.cpp b/protocols/AimOscar/src/ui.cpp index e38ebfe9b6..bef02edf15 100644 --- a/protocols/AimOscar/src/ui.cpp +++ b/protocols/AimOscar/src/ui.cpp @@ -71,7 +71,7 @@ void DrawMyControl(HDC hDC, HWND /*hwndButton*/, HANDLE hTheme, UINT iState, REC } else // ...else draw non pressed button { - UINT uState = DFCS_BUTTONPUSH|(bIsPressed? DFCS_PUSHED : 0); + UINT uState = DFCS_BUTTONPUSH; DrawFrameControl(hDC, &rect, DFC_BUTTON, uState); } } @@ -919,7 +919,7 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP //PN int port = GetDlgItemInt(hwndDlg, IDC_PN, NULL, FALSE); - if (port > 0 && port != ppro->getByte(AIM_KEY_DSSL, 0) ? AIM_DEFAULT_PORT : AIM_DEFAULT_SSL_PORT) + if (port > 0 && port != (ppro->getByte(AIM_KEY_DSSL, 0) ? AIM_DEFAULT_PORT : AIM_DEFAULT_SSL_PORT)) ppro->setWord(AIM_KEY_PN, (WORD)port); else ppro->delSetting(AIM_KEY_PN); -- cgit v1.2.3