From 38a72d61d3db92c6e6b494db75d2c3024ae08e05 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 27 Nov 2012 07:04:48 +0000 Subject: don't tested but should be working git-svn-id: http://svn.miranda-ng.org/main/trunk@2518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_dialogs.cpp | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'protocols/Skype/src/skype_dialogs.cpp') diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp index 759caec82e..bf023d4c49 100644 --- a/protocols/Skype/src/skype_dialogs.cpp +++ b/protocols/Skype/src/skype_dialogs.cpp @@ -363,17 +363,29 @@ INT_PTR CALLBACK CSkypeProto::OwnSkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wPa ListView_InsertItem(hwndList, &lvi); wchar_t *text = L""; switch(setting[lvi.iItem].dbType) { - case DBVT_WCHAR: - text = ppro->GetSettingString(setting[lvi.iItem].szDbSetting); - break; - case DBVT_BYTE: - //text = (wchar_t*)ppro->GetSettingByte(setting[lvi.iItem].szDbSetting); - break; - case DBVT_WORD: - //text = (wchar_t*)ppro->GetSettingWord(setting[lvi.iItem].szDbSetting); - break; + case DBVT_WCHAR: + text = ppro->GetSettingString(setting[lvi.iItem].szDbSetting); + break; + case DBVT_BYTE: + { + wchar_t tmp[10]; + _ltot(ppro->GetSettingByte(setting[lvi.iItem].szDbSetting), tmp, 10); + text = mir_tstrdup(tmp); + //text = (wchar_t*)ppro->GetSettingByte(setting[lvi.iItem].szDbSetting); + break; + } + case DBVT_WORD: + { + wchar_t tmp[10]; + _ltot(ppro->GetSettingWord(setting[lvi.iItem].szDbSetting), tmp, 10); + text = mir_tstrdup(tmp); + //text = (wchar_t*)ppro->GetSettingWord(setting[lvi.iItem].szDbSetting); + break; + } } ListView_SetItemText(hwndList, lvi.iItem, 1, text); + if (setting[lvi.iItem].dbType != DBVT_WCHAR) + mir_free(text); } } break; -- cgit v1.2.3