1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Make sure to initialize INPUT_RECORD variables because of the union data type section

This commit is contained in:
Jens Steube 2018-10-21 11:31:51 +02:00
parent fd960aef53
commit 4359f61f84

View File

@ -754,9 +754,11 @@ int select_read_timeout_console (const int sec)
INPUT_RECORD inRecords;
inRecords.EventType = 0;
PeekConsoleInput (hStdIn, &inRecords, 1, &dwRead);
if (inRecords.EventType == KEY_EVENT)
if (inRecords.EventType == 0)
{
// those are good ones