summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-19 21:56:16 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-20 01:33:42 +0100
commit18f37ebc69959712ceb496e287d92e13bcf05d09 (patch)
treee8ed9880a249125045241d9242f26902b7eec323 /winaccessibility
parenta47b9828f93dad3c3ede789f1814e959cea19a66 (diff)
winaccessibility: remove IsXPOrLater
XP is the baseline already so no need to check for it. Change-Id: I5737213d647d1aea9b9fa918d87b712d3a920156
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/inc/act.hxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/winaccessibility/inc/act.hxx b/winaccessibility/inc/act.hxx
index 61275ecab891..eeeda9894a07 100644
--- a/winaccessibility/inc/act.hxx
+++ b/winaccessibility/inc/act.hxx
@@ -24,27 +24,11 @@
#include <tchar.h>
-static bool IsXPOrLater()
-{
- OSVERSIONINFO osvi;
-
- ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
-
- osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
-
- GetVersionEx(&osvi);
- return ((osvi.dwMajorVersion > 5) ||
- ((osvi.dwMajorVersion == 5) && (osvi.dwMinorVersion >= 1)));
-}
-
static HANDLE pActCtx = INVALID_HANDLE_VALUE;
static ULONG_PTR lpCookie;
static bool ActivateActContext()
{
- if(!IsXPOrLater())
- return false;
-
ACTCTX actctx;
ZeroMemory(&actctx, sizeof(actctx));
@@ -76,9 +60,6 @@ static bool ActivateActContext()
static void DeactivateActContext()
{
- if(!IsXPOrLater())
- return;
-
if(lpCookie)
DeactivateActCtx(0, lpCookie);