aboutsummaryrefslogtreecommitdiffstats
path: root/api/rundll32.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-10 22:06:25 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-10 22:06:25 +0100
commite73613ee24cc5211c17b16f8190726f148c52a10 (patch)
treef6b5ba4cd2bbd8cdd7db3964018eaba6db262996 /api/rundll32.c
parentdriver: do not allow compiler to reload PacketSize (diff)
downloadwintun-e73613ee24cc5211c17b16f8190726f148c52a10.tar.xz
wintun-e73613ee24cc5211c17b16f8190726f148c52a10.zip
api: remove return value from logger function
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/rundll32.c')
-rw-r--r--api/rundll32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/api/rundll32.c b/api/rundll32.c
index 1d564ae..dc47a21 100644
--- a/api/rundll32.c
+++ b/api/rundll32.c
@@ -39,7 +39,7 @@ WriteFormatted(_In_ DWORD StdHandle, _In_z_ const WCHAR *Template, ...)
return SizeWritten / sizeof(WCHAR);
}
-static BOOL CALLBACK
+static void CALLBACK
ConsoleLogger(_In_ WINTUN_LOGGER_LEVEL Level, _In_z_ const WCHAR *LogLine)
{
const WCHAR *Template;
@@ -55,10 +55,9 @@ ConsoleLogger(_In_ WINTUN_LOGGER_LEVEL Level, _In_z_ const WCHAR *LogLine)
Template = L"[!] %1\n";
break;
default:
- return FALSE;
+ return;
}
WriteFormatted(STD_ERROR_HANDLE, Template, LogLine);
- return TRUE;
}
static int Argc;