diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-18 21:20:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-18 21:20:39 +0000 |
commit | ec0e34b4f88ebe03ff12f559e40dda52c51549b7 (patch) | |
tree | 42e8a56fe17d9736527fe79a6345e857842fbf40 /plugins/SmileyAdd | |
parent | ca702593c60aa89c06633777feb7cf79ad8e751f (diff) |
langpack services module destroyed from mir_app
the only survived service moved to mir_core
git-svn-id: http://svn.miranda-ng.org/main/trunk@14250 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd')
-rw-r--r-- | plugins/SmileyAdd/src/services.cpp | 5 | ||||
-rw-r--r-- | plugins/SmileyAdd/src/smileys.cpp | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp index f0e6b79e0d..4af2b720d4 100644 --- a/plugins/SmileyAdd/src/services.cpp +++ b/plugins/SmileyAdd/src/services.cpp @@ -236,10 +236,7 @@ INT_PTR RegisterPack(WPARAM, LPARAM lParam) if (IsBadStringPtrA(smre->name, 50) || IsBadStringPtrA(smre->dispname, 50)) return FALSE;
- unsigned lpcp = (unsigned)CallService(MS_LANGPACK_GETCODEPAGE, 0, 0);
- if (lpcp == CALLSERVICE_NOTFOUND) lpcp = CP_ACP;
-
-
+ unsigned lpcp = Langpack_GetDefaultCodePage();
CMString nmd(A2W_SM(smre->dispname, lpcp));
diff --git a/plugins/SmileyAdd/src/smileys.cpp b/plugins/SmileyAdd/src/smileys.cpp index 67b39b5945..63b79d169b 100644 --- a/plugins/SmileyAdd/src/smileys.cpp +++ b/plugins/SmileyAdd/src/smileys.cpp @@ -977,9 +977,7 @@ void SmileyCategoryListType::AddAllProtocolsAsCategory(void) const CMString& defaultFile = GetSmileyCategory(tname)->GetFilename();
-
- unsigned lpcp = (unsigned)CallService(MS_LANGPACK_GETCODEPAGE, 0, 0);
- if (lpcp == CALLSERVICE_NOTFOUND) lpcp = CP_ACP;
+ unsigned lpcp = Langpack_GetDefaultCodePage();
PROTOCOLDESCRIPTOR **proto;
int protoCount = 0;
|