From 0f727c8ee35fffa45bfe1fc4b55892bd4b91fa56 Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Fri, 8 Mar 2019 17:42:19 +0100 Subject: [HICN-104] Correct error in logo on Windows Change-Id: I16348246b19b84835646afca38b5003d9589d863 Signed-off-by: Angelo Mantellini --- hicn-light/src/command_line/daemon/hicnLightDaemon_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hicn-light/src/command_line/daemon/hicnLightDaemon_main.c') diff --git a/hicn-light/src/command_line/daemon/hicnLightDaemon_main.c b/hicn-light/src/command_line/daemon/hicnLightDaemon_main.c index 9a6c352fb..39e57ad9e 100644 --- a/hicn-light/src/command_line/daemon/hicnLightDaemon_main.c +++ b/hicn-light/src/command_line/daemon/hicnLightDaemon_main.c @@ -43,9 +43,9 @@ static void _printRed(const char *output) { HANDLE hConsole = NULL; WORD currentConsoleAttr; CONSOLE_SCREEN_BUFFER_INFO csbi; + hConsole = GetStdHandle(STD_OUTPUT_HANDLE); if (GetConsoleScreenBufferInfo(hConsole, &csbi)) currentConsoleAttr = csbi.wAttributes; - hConsole = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hConsole, 4); printf("%s", output); SetConsoleTextAttribute(hConsole, currentConsoleAttr); @@ -59,9 +59,9 @@ static void _printWhite(const char *output) { HANDLE hConsole = NULL; WORD currentConsoleAttr; CONSOLE_SCREEN_BUFFER_INFO csbi; + hConsole = GetStdHandle(STD_OUTPUT_HANDLE); if (GetConsoleScreenBufferInfo(hConsole, &csbi)) currentConsoleAttr = csbi.wAttributes; - hConsole = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hConsole, 7); printf("%s", output); SetConsoleTextAttribute(hConsole, currentConsoleAttr); -- cgit 1.2.3-korg