Fixed windows build failure

pull/3246/head
Dávid Bolvanský 2 years ago
parent 308d8f227d
commit 757d939728

@ -70,17 +70,19 @@ static void main_log (hashcat_ctx_t *hashcat_ctx, FILE *fp, const int loglevel)
event_ctx->prev_len = msg_len;
}
// color stuff pre
if (is_stdout_terminal()) {
#if defined (_WIN)
HANDLE hConsole = GetStdHandle (STD_OUTPUT_HANDLE);
HANDLE hConsole = GetStdHandle (STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO con_info;
CONSOLE_SCREEN_BUFFER_INFO con_info;
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)
{
case LOGLEVEL_INFO:

Loading…
Cancel
Save