Fixed Windows 98/ME input problem.

Unicode conversion was using CP_THREAD_ACP which is not
supported on pre Windows 2000 systems.
ver1_5_1
Christophe Teyssier 2008-03-09 21:26:46 +00:00
parent 40773e0897
commit 73f2177d9b
1 changed files with 1 additions and 1 deletions

View File

@ -3814,7 +3814,7 @@ LRESULT CALLBACK MainWindowProc(HWND hWnd,
char utf8CharCode[7];
memset(utf8CharCode, 0, sizeof(utf8CharCode));
WCHAR wCharCode;
MultiByteToWideChar(CP_THREAD_ACP, 0, (char*)&charCode, 1, &wCharCode, 1);
MultiByteToWideChar(CP_ACP, 0, (char*)&charCode, 1, &wCharCode, 1);
WideCharToMultiByte(CP_UTF8, 0, &wCharCode, 1, utf8CharCode, 7, 0, 0);
/*cerr << "Char input: (ANSI) " << (int)(unsigned char)charCode << " - UTF8 -> ";