summaryrefslogtreecommitdiff
path: root/src/modules/skin/sounds.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-13 22:28:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-13 22:28:28 +0000
commitfd90113f1a40064a9a6dc670a60dd3b2a738a467 (patch)
tree9d6bf74c6fdaaf7405329ef7f72caf12bbba658b /src/modules/skin/sounds.cpp
parent5849172a0425c813f3f57abbbf941022fa420950 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1915 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/skin/sounds.cpp')
-rw-r--r--src/modules/skin/sounds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/skin/sounds.cpp b/src/modules/skin/sounds.cpp
index 44b463eb96..c79db357f1 100644
--- a/src/modules/skin/sounds.cpp
+++ b/src/modules/skin/sounds.cpp
@@ -94,7 +94,7 @@ static INT_PTR ServiceSkinAddNewSound(WPARAM wParam, LPARAM lParam)
if (ptszDefaultFile) {
DBVARIANT dbv;
if (DBGetContactSettingString(NULL, "SkinSounds", item->name, &dbv))
- DBWriteContactSettingTString(NULL, "SkinSounds", item->name, ptszDefaultFile);
+ db_set_ts(NULL, "SkinSounds", item->name, ptszDefaultFile);
else
DBFreeVariant(&dbv);
mir_free(ptszDefaultFile);
@@ -333,7 +333,7 @@ INT_PTR CALLBACK DlgProcSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
for (int i=0; i < arSounds.getCount(); i++)
if (arSounds[i].ptszTempFile)
- DBWriteContactSettingTString(NULL, "SkinSounds", arSounds[i].name, arSounds[i].ptszTempFile);
+ db_set_ts(NULL, "SkinSounds", arSounds[i].name, arSounds[i].ptszTempFile);
TVITEM tvi, tvic;
tvi.hItem = TreeView_GetRoot(hwndTree);