diff options
Diffstat (limited to 'plugins/TooltipNotify/src/main.cpp')
-rw-r--r-- | plugins/TooltipNotify/src/main.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/TooltipNotify/src/main.cpp b/plugins/TooltipNotify/src/main.cpp index 85e73351a6..a634a012ae 100644 --- a/plugins/TooltipNotify/src/main.cpp +++ b/plugins/TooltipNotify/src/main.cpp @@ -54,11 +54,9 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved) OsVersionInfo.dwOSVersionInfoSize = sizeof(OsVersionInfo);
GetVersionEx(&OsVersionInfo);
-#ifdef _UNICODE
+
g_bRightModule = (OsVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT);
-#else
- g_bRightModule = (OsVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS);
-#endif
+
break;
}
@@ -98,11 +96,9 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda extern "C" int __declspec(dllexport) Load(PLUGINLINK *pLink)
{
-#ifdef _UNICODE
+
if (!g_bRightModule) return 0;
-#else
- // ansi version can work ok on winnt platform
-#endif
+
pluginLink = pLink;
mir_getLP(&sPluginInfo);
|