diff options
author | danem <dansemason@gmail.com> | 2017-10-13 16:20:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-13 16:20:11 -0700 |
commit | 60271ab67b6dabf9d9a00e3080dcb99075c717b6 (patch) | |
tree | ac3283badc3221bea2359fb1ff05a6282f0e8901 | |
parent | b49d190c655adf6ae6a4bb71c3fa36a329449749 (diff) | |
download | libepoxy-60271ab67b6dabf9d9a00e3080dcb99075c717b6.tar.gz |
Fix pointer mismatch bug on Windows 10.
We must explicitly cast to void**
-rw-r--r-- | src/dispatch_common.c | 2 |
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; |