Root cause is that the parameter of UnicodeStr doesn’t initialize.
Signed-off-by: qianouyang
Reviewed-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12575
6f19259b-4bc3-4df7-8a09-
765794883524
// The ESC key also generate WM_CHAR.\r
//\r
if (wParam == 0x1B) {\r
// The ESC key also generate WM_CHAR.\r
//\r
if (wParam == 0x1B) {\r
} \r
\r
if (AltIsPress == TRUE) {\r
} \r
\r
if (AltIsPress == TRUE) {\r
return 0;\r
\r
case WM_KEYDOWN:\r
return 0;\r
\r
case WM_KEYDOWN:\r
- Key.ScanCode = SCAN_NULL;\r
+ Key.ScanCode = SCAN_NULL;\r
+ Key.UnicodeChar = CHAR_NULL;\r
//\r
// A value key press will cause a WM_KEYDOWN first, then cause a WM_CHAR\r
// So if there is no modifier key updated, skip the WM_KEYDOWN even.\r
//\r
if (WinNtGopConvertParamToEfiKey (Private, &wParam, &lParam, &Key)) {\r
//\r
// A value key press will cause a WM_KEYDOWN first, then cause a WM_CHAR\r
// So if there is no modifier key updated, skip the WM_KEYDOWN even.\r
//\r
if (WinNtGopConvertParamToEfiKey (Private, &wParam, &lParam, &Key)) {\r
- if (Key.ScanCode != SCAN_NULL) {\r
- Key.UnicodeChar = CHAR_NULL;\r
- }\r
//\r
// Support the partial keystroke, add all keydown event into the queue.\r
//\r
//\r
// Support the partial keystroke, add all keydown event into the queue.\r
//\r