diff options
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]);
|