1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-05-06 00:49:45 +00:00

Merge pull request #3246 from davidbolvansky/fix_win_build

Fixed windows build failure
This commit is contained in:
Jens Steube 2022-03-29 13:35:10 +02:00 committed by GitHub
commit 6adf5fcf26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,8 +70,6 @@ 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;
} }
// color stuff pre
if (is_stdout_terminal()) {
#if defined (_WIN) #if defined (_WIN)
HANDLE hConsole = GetStdHandle (STD_OUTPUT_HANDLE); HANDLE hConsole = GetStdHandle (STD_OUTPUT_HANDLE);
@ -80,7 +78,11 @@ static void main_log (hashcat_ctx_t *hashcat_ctx, FILE *fp, const int loglevel)
GetConsoleScreenBufferInfo (hConsole, &con_info); GetConsoleScreenBufferInfo (hConsole, &con_info);
const int orig = con_info.wAttributes; const int orig = con_info.wAttributes;
#endif
// color stuff pre
if (is_stdout_terminal()) {
#if defined (_WIN)
switch (loglevel) switch (loglevel)
{ {
case LOGLEVEL_INFO: case LOGLEVEL_INFO: