소스 검색

Merge pull request #597 from eightyeight/fix-vs2008

Fix VS2008
Daniel Buckmaster 11 년 전
부모
커밋
e2dcde721d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Engine/source/platformWin32/winInput.cpp

+ 2 - 2
Engine/source/platformWin32/winInput.cpp

@@ -496,10 +496,10 @@ InputManager* Input::getManager()
 //------------------------------------------------------------------------------
 void Input::attemptSwitchToKeyboardLayout( U32 layout )
 {
-   const auto lang = MAKELANGID( layout, SUBLANG_DEFAULT );
+   const LANGID lang = MAKELANGID( layout, SUBLANG_DEFAULT );
    std::wstringstream ss;
    ss << std::hex << lang;
-   const auto hexLang = ss.str().c_str();
+   const wchar_t* hexLang = ss.str().c_str();
    ActivateKeyboardLayout( LoadKeyboardLayout(
        hexLang,  KLF_ACTIVATE | KLF_REPLACELANG
    ), KLF_REORDER );