summaryrefslogtreecommitdiff
path: root/plugins/ShellExt/src/shlcom.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-22 17:14:55 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-22 17:14:55 +0000
commitd8967087af559a43f1801e3e89411d570cbb3110 (patch)
treeb6596526a66c1aa8b80bab769cc7fd5472b327a8 /plugins/ShellExt/src/shlcom.cpp
parentd867e44172947b51b34d60a672673dffd771a304 (diff)
plugins cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6185 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ShellExt/src/shlcom.cpp')
-rw-r--r--plugins/ShellExt/src/shlcom.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/ShellExt/src/shlcom.cpp b/plugins/ShellExt/src/shlcom.cpp
index 24dd32f9c1..ef08c5afcf 100644
--- a/plugins/ShellExt/src/shlcom.cpp
+++ b/plugins/ShellExt/src/shlcom.cpp
@@ -4,8 +4,6 @@
#pragma comment(lib, "rpcrt4.lib")
-bool VistaOrLater;
-
int DllFactoryCount, DllObjectCount;
struct TCMInvokeCommandInfo
@@ -563,7 +561,7 @@ HRESULT RemoveCOMRegistryEntries()
void CheckUnregisterServer()
{
- if (VistaOrLater) {
+ if (IsWinVerVistaPlus) {
// launches regsvr to remove the dll under admin.
TCHAR szFileName[MAX_PATH], szBuf[MAX_PATH * 2];
GetModuleFileName(hInst, szFileName, SIZEOF(szFileName));
@@ -591,7 +589,7 @@ void CheckRegisterServer()
HKEY hRegKey;
if ( !RegOpenKeyExA(HKEY_CLASSES_ROOT, "miranda.shlext", 0, KEY_READ, &hRegKey))
RegCloseKey(hRegKey);
- else if (VistaOrLater) {
+ else if (IsWinVerVistaPlus) {
MessageBoxA(0,
"Shell context menus requires your permission to register with Windows Explorer (one time only).",
"Miranda NG - Shell context menus (shellext.dll)", MB_OK | MB_ICONINFORMATION);