diff options
author | George Hazan <george.hazan@gmail.com> | 2013-05-16 19:13:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-05-16 19:13:42 +0000 |
commit | 531c22f53e11f10cd5a6945962c559c4f64a07f1 (patch) | |
tree | 9b89a0377568ef72c82395a0f049adc957bf1d67 /protocols/Skype | |
parent | 912b08374d90c539b7c9c7386b55c9cd8336dd8b (diff) |
fix for corruption in Skype translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@4686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype')
-rw-r--r-- | protocols/Skype/src/skype_dialogs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp index 108aa09bd1..4e7f3c5438 100644 --- a/protocols/Skype/src/skype_dialogs.cpp +++ b/protocols/Skype/src/skype_dialogs.cpp @@ -355,7 +355,9 @@ INT_PTR CALLBACK CSkypeProto::SkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam break;
::SetDlgItemText(hwndDlg, IDC_SID, mir_ptr<wchar_t>(::db_get_wsa(hContact, ppro->m_szModuleName, SKYPE_SETTINGS_LOGIN)));
- ::SetDlgItemText(hwndDlg, IDC_STATUSTEXT, mir_ptr<wchar_t>(::db_get_wsa(hContact, ppro->m_szModuleName, "XStatusMsg")) ? mir_ptr<wchar_t>(::db_get_wsa(hContact, ppro->m_szModuleName, "XStatusMsg")) : TranslateT("<not specified>"));
+
+ ptrT statusMsg(::db_get_wsa(hContact, ppro->m_szModuleName, "XStatusMsg"));
+ ::SetDlgItemText(hwndDlg, IDC_STATUSTEXT, statusMsg != NULL ? statusMsg : TranslateT("<not specified>"));
if (::db_get_dw(hContact, ppro->m_szModuleName, "OnlineSinceTS", 0)) {
TCHAR date[64];
|