diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-12-13 01:37:07 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-12-13 01:37:07 +0000 |
commit | cd18179bc19230fae24cd627bbe94a4de2619c88 (patch) | |
tree | 028e58b809213e9f0bd1c25a5dbf90cfc9fd696a /yapp/popups2.cpp | |
parent | 1bd3ca0288fe4a5694f0975bef070209126d97fb (diff) |
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
Diffstat (limited to 'yapp/popups2.cpp')
-rw-r--r-- | yapp/popups2.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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;
}
|