Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps/mplayerc/PPageCasimir.cpp')
-rw-r--r--src/apps/mplayerc/PPageCasimir.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/apps/mplayerc/PPageCasimir.cpp b/src/apps/mplayerc/PPageCasimir.cpp
index 9a4dee4d6..1163aae98 100644
--- a/src/apps/mplayerc/PPageCasimir.cpp
+++ b/src/apps/mplayerc/PPageCasimir.cpp
@@ -214,7 +214,7 @@ void CPPageCasimir::OnBnClickedPn31()
TCHAR strApp [MAX_PATH];
GetModuleFileNameEx (GetCurrentProcess(), AfxGetMyApp()->m_hInstance, strApp, MAX_PATH);
- ::ShellExecute(0, IsVista() ? _T("runas") : _T(""), strApp, _T("/installpn31") /*: _T("/uninstallpn31")*/, 0, SW_SHOWNORMAL);
+ ::ShellExecute(0, AfxGetMyApp()->IsVista() ? _T("runas") : _T(""), strApp, _T("/installpn31") /*: _T("/uninstallpn31")*/, 0, SW_SHOWNORMAL);
}
void CPPageCasimir::OnBnClickedUninstallpn31()
@@ -222,13 +222,6 @@ void CPPageCasimir::OnBnClickedUninstallpn31()
TCHAR strApp [MAX_PATH];
GetModuleFileNameEx (GetCurrentProcess(), AfxGetMyApp()->m_hInstance, strApp, MAX_PATH);
- ::ShellExecute(0, IsVista() ? _T("runas") : _T(""), strApp, _T("/uninstallpn31"), 0, SW_SHOWNORMAL);
+ ::ShellExecute(0, AfxGetMyApp()->IsVista() ? _T("runas") : _T(""), strApp, _T("/uninstallpn31"), 0, SW_SHOWNORMAL);
}
-
-bool CPPageCasimir::IsVista()
-{
- DWORD dwVersion = GetVersion();
-
- return (LOBYTE(LOWORD(dwVersion))) >= 6;
-}