diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-24 20:47:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-24 20:47:23 +0000 |
commit | 0aefd54a58157eb6272fea9018a63e7cf39d5cf2 (patch) | |
tree | 1754641cd4a19e7a1bdf8147b7387d949fd6d3e1 /protocols/JabberG/src/jabber.cpp | |
parent | edc889e1188d25838da939e0ec49f057ec7ee99e (diff) |
duplicate code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@6219 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp index 13ac23f6dd..10c241f13e 100644 --- a/protocols/JabberG/src/jabber.cpp +++ b/protocols/JabberG/src/jabber.cpp @@ -57,6 +57,7 @@ XML_API xi; TIME_API tmi;
CLIST_INTERFACE* pcli;
+FI_INTERFACE *FIP = NULL;
BOOL jabberChatDllPresent = FALSE;
@@ -185,6 +186,14 @@ extern "C" int __declspec(dllexport) Load() mir_getLP(&pluginInfo);
mir_getCLI();
+ if (ServiceExists(MS_IMG_GETINTERFACE)) {
+ INT_PTR result = CallService(MS_IMG_GETINTERFACE, FI_IF_VERSION, (LPARAM)&FIP);
+ if (FIP == NULL || result != S_OK) {
+ MessageBoxEx(NULL, TranslateT("Fatal error, image services not found. Flags Module will be disabled."), _T("Error"), MB_OK | MB_ICONERROR | MB_APPLMODAL, 0);
+ return 1;
+ }
+ }
+
WORD v[4];
CallService(MS_SYSTEM_GETFILEVERSION, 0, (LPARAM)v);
mir_sntprintf(szCoreVersion, SIZEOF(szCoreVersion), _T("%d.%d.%d.%d"), v[0], v[1], v[2], v[3]);
|