mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 09:58:16 +00:00
Make sure to initialize INPUT_RECORD variables because of the union data type section
This commit is contained in:
parent
fd960aef53
commit
4359f61f84
@ -754,9 +754,11 @@ int select_read_timeout_console (const int sec)
|
|||||||
|
|
||||||
INPUT_RECORD inRecords;
|
INPUT_RECORD inRecords;
|
||||||
|
|
||||||
|
inRecords.EventType = 0;
|
||||||
|
|
||||||
PeekConsoleInput (hStdIn, &inRecords, 1, &dwRead);
|
PeekConsoleInput (hStdIn, &inRecords, 1, &dwRead);
|
||||||
|
|
||||||
if (inRecords.EventType == KEY_EVENT)
|
if (inRecords.EventType == 0)
|
||||||
{
|
{
|
||||||
// those are good ones
|
// those are good ones
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user