mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-08 09:58:49 +00:00
Merge pull request #155 from gm4tr1x/master
Fixed compiler warning for windows build
This commit is contained in:
commit
0102aef229
@ -2446,10 +2446,12 @@ int tty_getchar()
|
|||||||
// Then it wants to read with getche () a keyboard input
|
// Then it wants to read with getche () a keyboard input
|
||||||
// which has never been made.
|
// which has never been made.
|
||||||
|
|
||||||
INPUT_RECORD buf[100] = { 0 };
|
INPUT_RECORD buf[100];
|
||||||
|
|
||||||
DWORD num = 0;
|
DWORD num = 0;
|
||||||
|
|
||||||
|
memset (buf, 0, sizeof (buf));
|
||||||
|
|
||||||
ReadConsoleInput (stdinHandle, buf, 100, &num);
|
ReadConsoleInput (stdinHandle, buf, 100, &num);
|
||||||
|
|
||||||
FlushConsoleInputBuffer (stdinHandle);
|
FlushConsoleInputBuffer (stdinHandle);
|
||||||
|
Loading…
Reference in New Issue
Block a user