diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-03 19:44:57 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-03 19:44:57 +0000 |
commit | 50eb80e6116dda8fb97da91146092328d0950622 (patch) | |
tree | e88d09c8a73fa12dc990bb6bb4fac89388cfa8b9 /plugins/helpers | |
parent | 85b303dbbb3adf8bd060985ff3e0e5956e8a5cb9 (diff) |
removed the Unicode core verification
git-svn-id: http://svn.miranda-ng.org/main/trunk@1342 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/helpers')
-rw-r--r-- | plugins/helpers/gen_helpers.cpp | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp index 7c55d9509b..30b012f785 100644 --- a/plugins/helpers/gen_helpers.cpp +++ b/plugins/helpers/gen_helpers.cpp @@ -112,16 +112,16 @@ static int WriteToDebugLogA(const char *szMsg) { OutputDebugStringA(szMsg);
OutputDebugStringA("\r\n");
}
-
+
return res;
}
int AddDebugLogMessageA(const char* fmt, ...)
-{
+{
int res;
char szText[MAX_DEBUG], szFinal[MAX_DEBUG];
va_list va;
-
+
va_start(va,fmt);
_vsnprintf(szText, sizeof(szText), fmt, va);
va_end(va);
@@ -165,7 +165,7 @@ int AddErrorLogMessageA(const char* fmt, ...) { int res;
char szText[MAX_DEBUG], szFinal[MAX_DEBUG];
va_list va;
-
+
va_start(va,fmt);
_vsnprintf(szText, sizeof(szText), fmt, va);
va_end(va);
@@ -181,7 +181,7 @@ int AddErrorLogMessageA(const char* fmt, ...) { }
int AddErrorLogMessage(const TCHAR* fmt, ...) {
-
+
int res;
TCHAR tszText[MAX_DEBUG], tszFinal[MAX_DEBUG];
char *szFinal;
@@ -228,30 +228,7 @@ TCHAR *itot(int num) { // Helper functions that need MODULENAME
#define SETTING_NOENCODINGCHECK "NoEncodingCheck"
-int Hlp_UnicodeCheck(char *szPluginName, BOOL bForce, const char *szModule) {
-
-#ifndef _DEBUG
- char *ptr;
- char szVersionText[256];
-
- if (!CallService(MS_SYSTEM_GETVERSIONTEXT, (WPARAM)sizeof(szVersionText), (LPARAM)szVersionText)) {
- ptr = strstr(szVersionText, "Unicode");
-
- if ((ptr == NULL) && (!DBGetContactSettingByte(NULL, szModule, SETTING_NOENCODINGCHECK, 0))) {
- if (bForce) {
- MessageBoxA(NULL, "You are running the ANSI version Miranda. Please use the ANSI build of this plugin.", szPluginName, MB_OK);
-
- return -1;
- }
- else {
- MessageBoxA(NULL, "You are running the ANSI version Miranda. It's recommened to use the ANSI build of this plugin.", szPluginName, MB_OK);
- DBWriteContactSettingByte(NULL, szModule, SETTING_NOENCODINGCHECK, 1);
-
- return 0;
- }
- }
- }
-#endif
-
+int Hlp_UnicodeCheck(char *szPluginName, BOOL bForce, const char *szModule)
+{
return 0;
-}
\ No newline at end of file +}
|