diff options
author | George Hazan <george.hazan@gmail.com> | 2016-03-02 11:06:38 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-03-02 11:06:38 +0000 |
commit | 14bdc60ec9715ed7a0e74ade4072cf86f3fefb4a (patch) | |
tree | 7c8c30ba5af1343682c972527caf6d0c22f3c75c /plugins/SmileyAdd/src/main.cpp | |
parent | cbb56a2046b7894f4bb09e98dfb8b56febf1cb0f (diff) |
- crash fix on smiley pack change;
- massive code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);
|