diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 275f1a623702e631f7caba6410683d741d3bc522..3965e89b6334ecd087dbd7372d61a5c872fbc5d0 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -258,12 +258,12 @@ LONG WINAPI ImmGetCompositionStringW(
   HIMC hIMC, DWORD dwIndex,
   LPVOID lpBuf, DWORD dwBufLen)
 {
-  OSVERSIONINFOA version;
+  OSVERSIONINFOW version;
   FIXME("(%p, %ld, %p, %ld): stub\n",
     hIMC, dwIndex, lpBuf, dwBufLen
   );
   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-  GetVersionExA( &version );
+  GetVersionExW( &version );
   switch(version.dwPlatformId)
   {
   case VER_PLATFORM_WIN32_WINDOWS: return -1;