src/video/windows/SDL_windowskeyboard.c
changeset 11803 454f6dc9cb85
parent 11471 510e461e584a
child 11811 5d94cb6b24d3
     1.1 --- a/src/video/windows/SDL_windowskeyboard.c	Mon Jan 01 19:40:29 2018 -0400
     1.2 +++ b/src/video/windows/SDL_windowskeyboard.c	Mon Jan 01 19:16:51 2018 -0500
     1.3 @@ -446,16 +446,12 @@
     1.4      INT err = 0;
     1.5      BOOL vertical = FALSE;
     1.6      UINT maxuilen = 0;
     1.7 -    static OSVERSIONINFOA osversion;
     1.8  
     1.9      if (videodata->ime_uiless)
    1.10          return;
    1.11  
    1.12      videodata->ime_readingstring[0] = 0;
    1.13 -    if (!osversion.dwOSVersionInfoSize) {
    1.14 -        osversion.dwOSVersionInfoSize = sizeof(osversion);
    1.15 -        GetVersionExA(&osversion);
    1.16 -    }
    1.17 +    
    1.18      id = IME_GetId(videodata, 0);
    1.19      if (!id)
    1.20          return;
    1.21 @@ -516,9 +512,6 @@
    1.22              }
    1.23              break;
    1.24          case IMEID_CHS_VER42:
    1.25 -            if (osversion.dwPlatformId != VER_PLATFORM_WIN32_NT)
    1.26 -                break;
    1.27 -
    1.28              p = *(LPBYTE *)((LPBYTE)videodata->ImmLockIMCC(lpimc->hPrivate) + 1*4 + 1*4 + 6*4);
    1.29              if (!p)
    1.30                  break;