diff --git a/vlib/builtin/builtin_windows.c.v b/vlib/builtin/builtin_windows.c.v index fdabc29f9a..a9db49193c 100644 --- a/vlib/builtin/builtin_windows.c.v +++ b/vlib/builtin/builtin_windows.c.v @@ -224,7 +224,7 @@ fn unhandled_exception_handler(e &ExceptionPointers) int { } fn add_unhandled_exception_handler() { - add_vectored_exception_handler(unhandled_exception_handler) + add_vectored_exception_handler(VectoredExceptionHandler(voidptr(unhandled_exception_handler))) } fn C.IsDebuggerPresent() bool