summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-02-23 22:32:09 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-03-31 17:42:52 +0100
commitcbcdaa526780acf1b99d1e8a7644c12a19781069 (patch)
tree3db3d9356703f86aa75b626d3669aed1e431665d
parent1e1a42f10835e6f508c5e8a804aab69f9e6dd2ce (diff)
Remove a pointless OS version check in winInstallKeyboardHookLL()clipboard-fixes-new
Checking for OS later than NT4 SP3 (which we didn't do correctly anyhow, just checking for NT) is pointless when other code in hw/xwin assumes at least NT 5.0
-rw-r--r--hw/xwin/winkeyhook.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/hw/xwin/winkeyhook.c b/hw/xwin/winkeyhook.c
index cbee7cbda..6ecf272af 100644
--- a/hw/xwin/winkeyhook.c
+++ b/hw/xwin/winkeyhook.c
@@ -143,25 +143,6 @@ winKeyboardMessageHookLL (int iCode, WPARAM wParam, LPARAM lParam)
Bool
winInstallKeyboardHookLL (void)
{
- OSVERSIONINFO osvi = {0};
-
- /* Get operating system version information */
- osvi.dwOSVersionInfoSize = sizeof (osvi);
- GetVersionEx (&osvi);
-
- /* Branch on platform ID */
- switch (osvi.dwPlatformId)
- {
- case VER_PLATFORM_WIN32_NT:
- /* Low-level is supported on NT 4.0 SP3+ only */
- /* TODO: Return FALSE on NT 4.0 with no SP, SP1, or SP2 */
- break;
-
- case VER_PLATFORM_WIN32_WINDOWS:
- /* Low-level hook is not supported on non-NT */
- return FALSE;
- }
-
/* Install the hook only once */
if (!g_hhookKeyboardLL)
g_hhookKeyboardLL = SetWindowsHookEx (WH_KEYBOARD_LL,