summaryrefslogtreecommitdiff
path: root/yapp/popups2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yapp/popups2.cpp')
-rw-r--r--yapp/popups2.cpp6
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;
}