Răsfoiți Sursa

Bug 1573: It was not possible to answer prompts with non-ascii answers in winscp.

https://winscp.net/tracker/1573
(cherry picked from commit c6f06a805646027bb1dd507015b9f698f58c05d1)

Source commit: 5f79fc23f8dbf5d944edcc1b18deb5b2300fc07c
Martin Prikryl 8 ani în urmă
părinte
comite
927a7c38ee
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      source/console/Main.cpp

+ 2 - 2
source/console/Main.cpp

@@ -707,10 +707,10 @@ void ProcessChoiceEvent(TConsoleCommStruct::TChoiceEvent& Event)
                      Record.Event.KeyEvent.bKeyDown)
             {
               // This happens when Shift key is pressed
-              if (Record.Event.KeyEvent.uChar.AsciiChar != 0)
+              if (Record.Event.KeyEvent.uChar.UnicodeChar != 0)
               {
                 wchar_t CStr[2];
-                CStr[0] = Record.Event.KeyEvent.uChar.AsciiChar;
+                CStr[0] = Record.Event.KeyEvent.uChar.UnicodeChar;
                 CStr[1] = L'\0';
                 CharUpperBuff(CStr, 1);
                 wchar_t C = CStr[0];