summaryrefslogtreecommitdiff
path: root/src/modules/skin
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/skin')
-rw-r--r--src/modules/skin/skinicons.cpp4
-rw-r--r--src/modules/skin/sounds.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/skin/skinicons.cpp b/src/modules/skin/skinicons.cpp
index 983500b358..2cbef87a94 100644
--- a/src/modules/skin/skinicons.cpp
+++ b/src/modules/skin/skinicons.cpp
@@ -372,7 +372,7 @@ static void convertOneProtocol(char* moduleName, char* iconName)
if ( !DBGetContactSettingTString(NULL, "Icons", moduleName, &dbv)) {
_itoa(i, pi, 10);
- DBWriteContactSettingTString(NULL, "SkinIcons", iconName, dbv.ptszVal);
+ db_set_ts(NULL, "SkinIcons", iconName, dbv.ptszVal);
DBFreeVariant(&dbv);
DBDeleteContactSetting(NULL, "Icons", moduleName);
@@ -423,7 +423,7 @@ int LoadSkinIcons(void)
mir_snprintf(iconName, SIZEOF(iconName), "%s%d", mainIconsFmt, i);
- DBWriteContactSettingTString(NULL, "SkinIcons", iconName, dbv.ptszVal);
+ db_set_ts(NULL, "SkinIcons", iconName, dbv.ptszVal);
DBFreeVariant(&dbv);
DBDeleteContactSetting(NULL, "Icons", moduleName);
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);