summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_dialogs.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-05-10 09:28:30 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-05-10 09:28:30 +0000
commitb29ea624d53adbc50a9385c4e22d70c89a2a8e79 (patch)
tree4d40c148e17c279d221a0e1e54351b1840a48532 /protocols/Skype/src/skype_dialogs.cpp
parent89769e394468180e44d7d1c644ddf597a5799e3f (diff)
- removed big size status icons
- fixed crash on unsuccessful login - fixed crash on home tab in own profile info git-svn-id: http://svn.miranda-ng.org/main/trunk@4617 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_dialogs.cpp')
-rw-r--r--protocols/Skype/src/skype_dialogs.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp
index 35f0f909bc..1fd0d44191 100644
--- a/protocols/Skype/src/skype_dialogs.cpp
+++ b/protocols/Skype/src/skype_dialogs.cpp
@@ -471,7 +471,7 @@ INT_PTR CALLBACK CSkypeProto::PersonalSkypeDlgProc(HWND hwndDlg, UINT msg, WPARA
SYSTEMTIME sToday = {0};
::GetLocalTime(&sToday);
// ages from 10 to 50 is need more?
- for (size_t i = sToday.wYear - 50; i < sToday.wYear - 10; i++)
+ for (WORD i = sToday.wYear - 50; i < sToday.wYear - 10; i++)
{
::_itow(i, date, 10);
::SendMessage(::GetDlgItem(hwndDlg, IDC_BIRTH_YEAR), CB_ADDSTRING, 0, (LPARAM)date);
@@ -698,7 +698,7 @@ INT_PTR CALLBACK CSkypeProto::HomeSkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wP
i,
(LPARAM)g_countries[i].id);
- if (::wcscmp(country, countr) == 0)
+ if (countr && ::wcscmp(country, countr) == 0)
::SetDlgItemText(hwndDlg, IDC_COUNTRY, TranslateTS(country));
::mir_free(country);
@@ -709,6 +709,8 @@ INT_PTR CALLBACK CSkypeProto::HomeSkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wP
//HANDLE hTimeZone = tmi.createByContact ? tmi.createByContact(NULL, 0) : 0;
//LPCTSTR TzDescr = tmi.getTzDescription(tmi.getTzName(hTimeZone));
//SetDlgItemText(hwndDlg, IDC_TIMEZONE, TzDescr);
+
+ //BYTE nTz = ::db_get_b(NULL, ppro->m_szModuleName, "Timezone", 0);
}
break;