ops, last minute api change was not updated...
authorbarbieri <barbieri>
Wed, 1 Aug 2012 15:35:28 +0000 (15:35 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 1 Aug 2012 15:35:28 +0000 (15:35 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@74743 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_log.c

index 944a695..b9c8a99 100644 (file)
@@ -2072,8 +2072,11 @@ eina_log_console_color_set(FILE *fp, const char *color)
    if (_disable_color) return;
 
 #ifdef _WIN32
-   int attr = eina_log_win32_color_convert(color);
+   int attr = eina_log_win32_color_convert(color, NULL);
    HANDLE *handle;
+
+   if (!attr) return;
+
    if (fp == stderr)
      handle = GetStdHandle(STD_ERROR_HANDLE);
    else if (fp == stdout)