diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 434a2a2..b1edd51 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -852,7 +852,7 @@ epoxy_resolver_failure_handler_t epoxy_set_resolver_failure_handler(epoxy_resolver_failure_handler_t handler) { #ifdef _WIN32 - return InterlockedExchangePointer(&epoxy_resolver_failure_handler, + return InterlockedExchangePointer((void**)&epoxy_resolver_failure_handler, handler); #else epoxy_resolver_failure_handler_t old;