From 3eab86e88f98801a4983c7ed5d08936b81741f3e Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Thu, 22 Apr 2010 05:04:36 +0000 Subject: API standardization cosmetic changes git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@510 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/popups2.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'yapp/popups2.cpp') diff --git a/yapp/popups2.cpp b/yapp/popups2.cpp index a800af7..845635b 100644 --- a/yapp/popups2.cpp +++ b/yapp/popups2.cpp @@ -60,6 +60,7 @@ extern "C" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LP extern "C" POPUPS2_API PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { + pluginInfo.cbSize = sizeof(PLUGININFOEX); return &pluginInfo; } @@ -152,7 +153,8 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update); } - if(ServiceExists(MS_FONT_REGISTERW)) { + if(ServiceExists(MS_FONT_REGISTERW)) + { font_id_firstlinew.cbSize = sizeof(FontIDW); font_id_firstlinew.flags = FIDF_ALLOWEFFECTS; t2w(TranslateT("Popups"), font_id_firstlinew.group, 64); @@ -355,7 +357,7 @@ extern "C" int POPUPS2_API Load(PLUGINLINK *link) { test.iSeconds = 10; test.ptszDescription = TranslateT("Test popup class"); test.pszName = "popup/testclass"; - CallService(MS_YAPP_REGISTERCLASS, 0, (WPARAM)&test); + CallService(MS_POPUP_REGISTERCLASS, 0, (WPARAM)&test); */ return 0; -- cgit v1.2.3