From cd18179bc19230fae24cd627bbe94a4de2619c88 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Mon, 13 Dec 2010 01:37:07 +0000 Subject: Added warning for unicows not found Fixes for projects git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@584 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/popups2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'yapp/popups2.cpp') diff --git a/yapp/popups2.cpp b/yapp/popups2.cpp index cdd7eea..d95c884 100644 --- a/yapp/popups2.cpp +++ b/yapp/popups2.cpp @@ -62,6 +62,12 @@ 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); + if (!IsWinVerNT() && !GetModuleHandle(_T("unicows.dll"))) + { + MessageBox(NULL, _T("The yapp plugin cannot be loaded. It requires unicows.dll."), + _T("Miranda IM"), MB_OK | MB_ICONWARNING | MB_SETFOREGROUND | MB_TOPMOST); + return NULL; + } return &pluginInfo; } -- cgit v1.2.3