diff options
Diffstat (limited to 'plugins/SmileyAdd/src/main.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/main.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp index 1c59ae7597..b5afa0b036 100644 --- a/plugins/SmileyAdd/src/main.cpp +++ b/plugins/SmileyAdd/src/main.cpp @@ -19,11 +19,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h"
-//globals
+// globals
HINSTANCE g_hInst;
HANDLE hEvent1;
HGENMENU hContactMenuItem;
+FI_INTERFACE *fei;
+
int hLangpack;
static const PLUGININFOEX pluginInfoEx =
@@ -87,10 +89,11 @@ extern "C" __declspec(dllexport) int Load(void) if (ServiceExists(MS_SMILEYADD_REPLACESMILEYS)) {
ReportError(TranslateT("Only one instance of SmileyAdd could be executed.\nRemove duplicate instances from 'Plugins' directory"));
-
return 1;
}
+ CallService(MS_IMG_GETINTERFACE, FI_IF_VERSION, (LPARAM)&fei);
+
InitImageCache();
Icon_Register(g_hInst, "SmileyAdd", &icon, 1);
@@ -144,7 +147,7 @@ extern "C" __declspec(dllexport) int Unload(void) extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID /*lpvReserved*/)
{
- switch(fdwReason) {
+ switch (fdwReason) {
case DLL_PROCESS_ATTACH:
g_hInst = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
|