From 50eb80e6116dda8fb97da91146092328d0950622 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Aug 2012 19:44:57 +0000 Subject: removed the Unicode core verification git-svn-id: http://svn.miranda-ng.org/main/trunk@1342 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/helpers/gen_helpers.cpp | 39 ++++++++------------------------------- 1 file changed, 8 insertions(+), 31 deletions(-) (limited to 'plugins/helpers') 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 +} -- cgit v1.2.3