diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-05 15:39:50 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-05 15:39:50 +0000 |
commit | 357af8c5a3cf922818ee014a8f2b54a799917eea (patch) | |
tree | 2ed1b38f979d7b3991f9ca9a4103347f2fddfe62 /plugins/LangMan/options.cpp | |
parent | a039e3378554f4f7b12a38722f72dfded2f4b277 (diff) |
removed old PLUGININFO. plugin info cleanup starts
git-svn-id: http://svn.miranda-ng.org/main/trunk@312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/LangMan/options.cpp')
-rw-r--r-- | plugins/LangMan/options.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/LangMan/options.cpp b/plugins/LangMan/options.cpp index e0646c17fe..a6acdd9aea 100644 --- a/plugins/LangMan/options.cpp +++ b/plugins/LangMan/options.cpp @@ -177,8 +177,8 @@ static void DisplayNotIncludedPlugins(HWND hwndListBox, const LANGPACK_INFO *pac char buf[128];
TCHAR buf2[128];
DWORD mirandaVersion;
- PLUGININFO *pluginInfo;
- PLUGININFO *(__cdecl *MirandaPluginInfo)(DWORD);
+ PLUGININFOEX *pluginInfo;
+ PLUGININFOEX *(__cdecl *MirandaPluginInfo)(DWORD);
/* enum plugins */
if (!(pack->flags&LPF_DEFAULT) && GetModuleFileName(NULL, szDir, SIZEOF(szDir))) {
@@ -215,12 +215,10 @@ static void DisplayNotIncludedPlugins(HWND hwndListBox, const LANGPACK_INFO *pac if (hModule == NULL) continue;
}
/* plugin info */
- *(PROC*)&MirandaPluginInfo = GetProcAddress(hModule, "MirandaPluginInfo");
- if (MirandaPluginInfo == NULL) /* v0.8 support */
- *(PROC*)&MirandaPluginInfo = GetProcAddress(hModule, "MirandaPluginInfoEx");
+ *(PROC*)&MirandaPluginInfo = GetProcAddress(hModule, "MirandaPluginInfoEx");
if (MirandaPluginInfo!=NULL) { /* both structs have the same header */
pluginInfo = MirandaPluginInfo(mirandaVersion);
- if (pluginInfo!=NULL && pluginInfo->cbSize >= sizeof(PLUGININFO) && pluginInfo->shortName!=NULL) {
+ if (pluginInfo!=NULL && pluginInfo->cbSize >= sizeof(PLUGININFOEX) && pluginInfo->shortName!=NULL) {
lstrcpynA(buf, pluginInfo->shortName, sizeof(buf)); /* buffer safe */
CleanupPluginName(buf);
mir_sntprintf(buf2, SIZEOF(buf2), TranslateT("%hs (%s)"), buf, CharLower(wfd.cFileName));
|