Fix pointer mismatch bug on Windows 10.

We must explicitly cast to void**
macos/v1.5.9
danem 7 years ago committed by GitHub
parent b49d190c65
commit 60271ab67b
  1. 2
      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;

Loading…
Cancel
Save