diff options
author | Simon Rozman <simon@rozman.si> | 2020-10-16 14:17:22 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 16:51:01 +0100 |
commit | c049a8f85392a919b68f4fe24dacb5722e0d30b2 (patch) | |
tree | 0932fc94beaaaa90f54bab007dcffc03d650db69 /api/logger.c | |
parent | api: build the bridge from WoW64 to native in (diff) | |
download | wintun-c049a8f85392a919b68f4fe24dacb5722e0d30b2.tar.xz wintun-c049a8f85392a919b68f4fe24dacb5722e0d30b2.zip |
api: make logger callback return a dummy value
Go supports only callbacks that return "something" of a size up to
uintptr. It panics on void-returning callbacks.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/logger.c')
-rw-r--r-- | api/logger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/logger.c b/api/logger.c index a4400b9..b314f9c 100644 --- a/api/logger.c +++ b/api/logger.c @@ -5,11 +5,12 @@ #include "pch.h" -static VOID CALLBACK +static BOOL CALLBACK NopLogger(_In_ WINTUN_LOGGER_LEVEL Level, _In_z_ const WCHAR *LogLine) { UNREFERENCED_PARAMETER(Level); UNREFERENCED_PARAMETER(LogLine); + return TRUE; } WINTUN_LOGGER_FUNC Logger = NopLogger; |