mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-10 15:51:10 +00:00
Merge pull request #3246 from davidbolvansky/fix_win_build
Fixed windows build failure
This commit is contained in:
commit
6adf5fcf26
18
src/main.c
18
src/main.c
@ -70,17 +70,19 @@ static void main_log (hashcat_ctx_t *hashcat_ctx, FILE *fp, const int loglevel)
|
|||||||
event_ctx->prev_len = msg_len;
|
event_ctx->prev_len = msg_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined (_WIN)
|
||||||
|
HANDLE hConsole = GetStdHandle (STD_OUTPUT_HANDLE);
|
||||||
|
|
||||||
|
CONSOLE_SCREEN_BUFFER_INFO con_info;
|
||||||
|
|
||||||
|
GetConsoleScreenBufferInfo (hConsole, &con_info);
|
||||||
|
|
||||||
|
const int orig = con_info.wAttributes;
|
||||||
|
#endif
|
||||||
|
|
||||||
// color stuff pre
|
// color stuff pre
|
||||||
if (is_stdout_terminal()) {
|
if (is_stdout_terminal()) {
|
||||||
#if defined (_WIN)
|
#if defined (_WIN)
|
||||||
HANDLE hConsole = GetStdHandle (STD_OUTPUT_HANDLE);
|
|
||||||
|
|
||||||
CONSOLE_SCREEN_BUFFER_INFO con_info;
|
|
||||||
|
|
||||||
GetConsoleScreenBufferInfo (hConsole, &con_info);
|
|
||||||
|
|
||||||
const int orig = con_info.wAttributes;
|
|
||||||
|
|
||||||
switch (loglevel)
|
switch (loglevel)
|
||||||
{
|
{
|
||||||
case LOGLEVEL_INFO:
|
case LOGLEVEL_INFO:
|
||||||
|
Loading…
Reference in New Issue
Block a user