summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanem <dansemason@gmail.com>2017-10-13 16:20:11 -0700
committerGitHub <noreply@github.com>2017-10-13 16:20:11 -0700
commit60271ab67b6dabf9d9a00e3080dcb99075c717b6 (patch)
treeac3283badc3221bea2359fb1ff05a6282f0e8901
parentb49d190c655adf6ae6a4bb71c3fa36a329449749 (diff)
downloadlibepoxy-60271ab67b6dabf9d9a00e3080dcb99075c717b6.tar.gz
Fix pointer mismatch bug on Windows 10.
We must explicitly cast to void**
-rw-r--r--src/dispatch_common.c2
1 files changed, 1 insertions, 1 deletions
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;