summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-07-22 07:47:50 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-07-22 07:47:50 +0000
commitff287facb697ba6c2b40976e8ab46855ea27eb92 (patch)
tree887a36e6ad11d6d9bf252869552fd56b44f990a7 /plugins/StatusPlugins
parenta1b8a63c51711cd11d974c4f9fcf1c99210538b6 (diff)
fix for changing char to TCHAR
git-svn-id: http://svn.miranda-ng.org/main/trunk@5445 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins')
-rw-r--r--plugins/StatusPlugins/KeepStatus/keepstatus.cpp32
-rw-r--r--plugins/StatusPlugins/KeepStatus/version.h2
2 files changed, 17 insertions, 17 deletions
diff --git a/plugins/StatusPlugins/KeepStatus/keepstatus.cpp b/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
index 5aa414fee5..d8ed71f90c 100644
--- a/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
+++ b/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
@@ -231,7 +231,7 @@ static int AssignStatus(TConnectionSettings* cs, int status, int lastStatus, TCH
EnterCriticalSection(&GenStatusCS);
char dbSetting[128];
- _snprintf(dbSetting, sizeof(dbSetting), "%s_enabled", cs->szName);
+ mir_snprintf(dbSetting, sizeof(dbSetting), "%s_enabled", cs->szName);
cs->lastStatus = lastStatus == 0 ? cs->status : lastStatus;
if (!db_get_b(NULL, MODULENAME, dbSetting, 1))
cs->status = ID_STATUS_DISABLED;
@@ -948,7 +948,7 @@ static int ProcessPopup(int reason, LPARAM lParam)
return -1;
hIcon = (HICON)CallService(MS_SKIN_LOADPROTOICON, (WPARAM)lParam, (LPARAM)SKINICON_STATUS_OFFLINE);
- _sntprintf(text, sizeof(text), TranslateT("%s connected from another location"), ProtoName);
+ mir_sntprintf(text, SIZEOF(text), TranslateT("%s connected from another location"), ProtoName);
break;
case KS_CONN_STATE_LOGINERROR: // lParam = 1 proto
@@ -960,10 +960,10 @@ static int ProcessPopup(int reason, LPARAM lParam)
hIcon = (HICON)CallService(MS_SKIN_LOADPROTOICON, (WPARAM)lParam, (LPARAM)SKINICON_STATUS_OFFLINE);
if ( db_get_b(NULL, MODULENAME, SETTING_LOGINERR, LOGINERR_NOTHING) == LOGINERR_CANCEL)
- _sntprintf(text, sizeof(text), TranslateT("%s login error, cancel reconnecting"), ProtoName);
+ mir_sntprintf(text, SIZEOF(text), TranslateT("%s login error, cancel reconnecting"), ProtoName);
else if ( db_get_b(NULL, MODULENAME, SETTING_LOGINERR, LOGINERR_NOTHING) == LOGINERR_SETDELAY)
- _sntprintf(text, sizeof(text), TranslateT("%s login error (next retry (%d) in %d s)"), ProtoName, retryCount+1, db_get_dw(NULL, MODULENAME, SETTING_LOGINERR_DELAY, DEFAULT_MAXDELAY));
+ mir_sntprintf(text, SIZEOF(text), TranslateT("%s login error (next retry (%d) in %d s)"), ProtoName, retryCount+1, db_get_dw(NULL, MODULENAME, SETTING_LOGINERR_DELAY, DEFAULT_MAXDELAY));
else
return -1;
@@ -977,11 +977,11 @@ static int ProcessPopup(int reason, LPARAM lParam)
if (lParam) // Указатель на имя модуля.
{
hIcon = (HICON)CallService(MS_SKIN_LOADPROTOICON, (WPARAM)lParam, (LPARAM)SKINICON_STATUS_OFFLINE);
- _sntprintf(text, sizeof(text), TranslateT("%s status error (next retry (%d) in %d s)"), ProtoName, retryCount+1, currentDelay/1000);
+ mir_sntprintf(text, SIZEOF(text), TranslateT("%s status error (next retry (%d) in %d s)"), ProtoName, retryCount+1, currentDelay/1000);
}
else {
hIcon = (HICON)CallService(MS_SKIN_LOADICON, (WPARAM)SKINICON_STATUS_OFFLINE, 0);
- _sntprintf(text, sizeof(text), TranslateT("Status error (next retry (%d) in %d s)"), retryCount+1, currentDelay/1000);
+ mir_sntprintf(text, SIZEOF(text), TranslateT("Status error (next retry (%d) in %d s)"), retryCount+1, currentDelay/1000);
}
break;
@@ -1004,8 +1004,8 @@ static int ProcessPopup(int reason, LPARAM lParam)
{
if ( db_get_b(NULL, MODULENAME, SETTING_PUSHOWEXTRA, TRUE))
{
- _sntprintf(protoInfoLine, sizeof(protoInfoLine), _T("%s\t(%s %S)\r\n"), ps[i]->tszAccName, TranslateT("will be set to"), (char *)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, (WPARAM)ps[i]->status, 0));
- _tcsncat(protoInfo, protoInfoLine, sizeof(protoInfo) - _tcslen(protoInfo)-1);
+ mir_sntprintf(protoInfoLine, SIZEOF(protoInfoLine), _T("%s\t(%s %S)\r\n"), ps[i]->tszAccName, TranslateT("will be set to"), (char *)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, (WPARAM)ps[i]->status, 0));
+ _tcsncat(protoInfo, protoInfoLine, SIZEOF(protoInfo) - _tcslen(protoInfo)-1);
}
}
}
@@ -1019,9 +1019,9 @@ static int ProcessPopup(int reason, LPARAM lParam)
hIcon = (HICON)CallService(MS_SKIN_LOADICON, (WPARAM)SKINICON_STATUS_OFFLINE, 0);
if (retryCount == maxRetries-1)
- _sntprintf(text, sizeof(text), TranslateT("Resetting status... (last try (%d))%s"), retryCount+1, protoInfo);
+ mir_sntprintf(text, SIZEOF(text), TranslateT("Resetting status... (last try (%d))%s"), retryCount+1, protoInfo);
else
- _sntprintf(text, sizeof(text), TranslateT("Resetting status... (next retry (%d) in %d s)%s"), retryCount+2, currentDelay/1000, protoInfo);
+ mir_sntprintf(text, SIZEOF(text), TranslateT("Resetting status... (next retry (%d) in %d s)%s"), retryCount+2, currentDelay/1000, protoInfo);
}
break;
@@ -1031,9 +1031,9 @@ static int ProcessPopup(int reason, LPARAM lParam)
hIcon = (HICON)CallService(MS_SKIN_LOADICON, (WPARAM)SKINICON_STATUS_OFFLINE, 0);
if (retryCount == maxRetries-1)
- _sntprintf(text, sizeof(text), TranslateT("No internet connection seems available... (last try (%d))"), retryCount+1);
+ mir_sntprintf(text, SIZEOF(text), TranslateT("No internet connection seems available... (last try (%d))"), retryCount+1);
else
- _sntprintf(text, sizeof(text), TranslateT("No internet connection seems available... (next retry (%d) in %d s)"), retryCount+2, currentDelay/1000);
+ mir_sntprintf(text, SIZEOF(text), TranslateT("No internet connection seems available... (next retry (%d) in %d s)"), retryCount+2, currentDelay/1000);
break;
case KS_CONN_STATE_STOPPEDCHECKING: // lParam == BOOL succes
@@ -1042,11 +1042,11 @@ static int ProcessPopup(int reason, LPARAM lParam)
if (lParam) {
hIcon = (HICON)CallService(MS_SKIN_LOADICON, (WPARAM)SKINICON_STATUS_ONLINE, 0);
- _sntprintf(text, sizeof(text), TranslateT("Status was set ok"));
+ mir_sntprintf(text, SIZEOF(text), TranslateT("Status was set ok"));
}
else {
hIcon = (HICON)CallService(MS_SKIN_LOADICON, (WPARAM)SKINICON_STATUS_OFFLINE, 0);
- _sntprintf(text, sizeof(text), TranslateT("Giving up"));
+ mir_sntprintf(text, SIZEOF(text), TranslateT("Giving up"));
}
break;
}
@@ -1136,7 +1136,7 @@ INT_PTR EnableProtocolService(WPARAM wParam, LPARAM lParam)
return -1;
char dbSetting[128];
- _snprintf(dbSetting, sizeof(dbSetting), "%s_enabled", szProto);
+ mir_snprintf(dbSetting, sizeof(dbSetting), "%s_enabled", szProto);
if (!db_get_b(NULL, MODULENAME, dbSetting, 1)) // 'hard' disabled
return -1;
@@ -1163,7 +1163,7 @@ INT_PTR IsProtocolEnabledService(WPARAM wParam, LPARAM lParam)
char *szProto = (char *)lParam;
char dbSetting[128];
- _snprintf(dbSetting, sizeof(dbSetting), "%s_enabled", szProto);
+ mir_snprintf(dbSetting, sizeof(dbSetting), "%s_enabled", szProto);
if ( !db_get_b(NULL, MODULENAME, dbSetting, 1 ))
return FALSE;
diff --git a/plugins/StatusPlugins/KeepStatus/version.h b/plugins/StatusPlugins/KeepStatus/version.h
index 3e685b6294..b9cc47ae93 100644
--- a/plugins/StatusPlugins/KeepStatus/version.h
+++ b/plugins/StatusPlugins/KeepStatus/version.h
@@ -13,7 +13,7 @@
//#define __PROD_REV_NUM 1234
// stuff that will be used in PluginInfo section and in Version resource
-#define __PLUGIN_NAME "Keep Status"
+#define __PLUGIN_NAME "Keep status"
#define __FILENAME "KeepStatus.dll"
#define __DESC "KeepStatus, A connection checker, for use with (or without) StartupStatus and/or AdvancedAutoAway."
#define __AUTHOR "P Boon"