diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-27 07:04:48 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-27 07:04:48 +0000 |
commit | 38a72d61d3db92c6e6b494db75d2c3024ae08e05 (patch) | |
tree | cf9770c78855c3e49167b2ce4864a5ac09bf2319 /protocols/Skype | |
parent | 624f3d3d83f0def401d70c2da9a12f79388e8576 (diff) |
don't tested but should be working
git-svn-id: http://svn.miranda-ng.org/main/trunk@2518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype')
-rw-r--r-- | protocols/Skype/src/skype_dialogs.cpp | 30 |
1 files changed, 21 insertions, 9 deletions
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;
|