summaryrefslogtreecommitdiff
path: root/plugins/QuickMessages/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-29 12:36:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-29 12:36:34 +0000
commit428bf0cbd77813a43094cb5c984436deff251936 (patch)
treed7dfa8971153d53a849e45c942be97fe5b90b7ec /plugins/QuickMessages/src
parent82ef17ca5286f58ae7af604fb9518e8dc496b7c3 (diff)
no more TCHARs
git-svn-id: http://svn.miranda-ng.org/main/trunk@17143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/QuickMessages/src')
-rw-r--r--plugins/QuickMessages/src/Utils.cpp10
-rw-r--r--plugins/QuickMessages/src/options.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/QuickMessages/src/Utils.cpp b/plugins/QuickMessages/src/Utils.cpp
index b5f1943aed..3b79669ca8 100644
--- a/plugins/QuickMessages/src/Utils.cpp
+++ b/plugins/QuickMessages/src/Utils.cpp
@@ -153,11 +153,11 @@ void SaveModuleSettings(int buttonnum, ButtonData* bd)
char szMEntry[256] = { '\0' };
mir_snprintf(szMEntry, "EntryName_%u_%u", buttonnum, bd->dwPos);
- db_set_ts(NULL, PLGNAME, szMEntry, bd->pszName);
+ db_set_ws(NULL, PLGNAME, szMEntry, bd->pszName);
mir_snprintf(szMEntry, "EntryValue_%u_%u", buttonnum, bd->dwPos);
if (bd->pszValue)
- db_set_ts(NULL, PLGNAME, szMEntry, bd->pszValue);
+ db_set_ws(NULL, PLGNAME, szMEntry, bd->pszValue);
else
db_unset(NULL, PLGNAME, szMEntry);
@@ -185,7 +185,7 @@ void CleanSettings(int buttonnum, int from)
}
mir_snprintf(szMEntry, "EntryName_%u_%u", buttonnum, from);
- while (!db_get_ts(NULL, PLGNAME, szMEntry, &dbv)) {
+ while (!db_get_ws(NULL, PLGNAME, szMEntry, &dbv)) {
db_unset(NULL, PLGNAME, szMEntry);
mir_snprintf(szMEntry, "EntryValue_%u_%u", buttonnum, from);
db_unset(NULL, PLGNAME, szMEntry);
@@ -228,7 +228,7 @@ static HANDLE AddIcon(char* szIcoName)
GetModuleFileName(hinstance, tszPath, _countof(tszPath));
SKINICONDESC sid = { 0 };
- sid.flags = SIDF_PATH_TCHAR;
+ sid.flags = SIDF_PATH_UNICODE;
sid.section.a = "Quick Messages";
sid.description.a = szIcoName;
sid.pszName = szIcoName;
@@ -355,7 +355,7 @@ wchar_t* getMenuEntry(int buttonnum, int entrynum, BYTE mode)
break;
}
- if (!db_get_ts(NULL, PLGNAME, szMEntry, &dbv)) {
+ if (!db_get_ws(NULL, PLGNAME, szMEntry, &dbv)) {
if (mir_wstrlen(dbv.ptszVal))
buffer = mir_wstrdup(dbv.ptszVal);
db_free(&dbv);
diff --git a/plugins/QuickMessages/src/options.cpp b/plugins/QuickMessages/src/options.cpp
index 297a6b0f9f..50e561c814 100644
--- a/plugins/QuickMessages/src/options.cpp
+++ b/plugins/QuickMessages/src/options.cpp
@@ -248,7 +248,7 @@ void SaveMenuTree()
if (ld->ptszQValue) {
mir_snprintf(szMEntry, "ButtonValue_%u", iBl);
- db_set_ts(NULL, PLGNAME, szMEntry, ld->ptszQValue);
+ db_set_ws(NULL, PLGNAME, szMEntry, ld->ptszQValue);
}
@@ -263,7 +263,7 @@ void SaveMenuTree()
mir_snprintf(szMEntry, "ButtonName_%u", iBl);
- db_set_ts(NULL, PLGNAME, szMEntry, ld->ptszButtonName);
+ db_set_ws(NULL, PLGNAME, szMEntry, ld->ptszButtonName);
ld->dwOPFlags = 0;
ld->dwPos = iBl;