diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-11-19 21:56:16 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-11-20 01:33:42 +0100 |
commit | 18f37ebc69959712ceb496e287d92e13bcf05d09 (patch) | |
tree | e8ed9880a249125045241d9242f26902b7eec323 /winaccessibility/inc/act.hxx | |
parent | a47b9828f93dad3c3ede789f1814e959cea19a66 (diff) |
winaccessibility: remove IsXPOrLater
XP is the baseline already so no need to check for it.
Change-Id: I5737213d647d1aea9b9fa918d87b712d3a920156
Diffstat (limited to 'winaccessibility/inc/act.hxx')
-rw-r--r-- | winaccessibility/inc/act.hxx | 19 |
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); |