8000 windows 32bit: config change callback needs to be stdcall · c-ares/c-ares@5c2bab3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 5c2bab3

Browse files
committed
windows 32bit: config change callback needs to be stdcall
1 parent d3aac82 commit 5c2bab3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib/ares_event_configchg.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,10 @@ void ares_event_configchg_destroy(ares_event_configchg_t *configchg)
237237

238238

239239
# ifndef __WATCOMC__
240-
static void ares_event_configchg_ip_cb(PVOID CallerContext,
241-
PMIB_IPINTERFACE_ROW Row,
242-
MIB_NOTIFICATION_TYPE NotificationType)
240+
static void NETIOAPI_API_
241+
ares_event_configchg_ip_cb(PVOID CallerContext,
242+
PMIB_IPINTERFACE_ROW Row,
243+
MIB_NOTIFICATION_TYPE NotificationType)
243244
{
244245
ares_event_configchg_t *configchg = CallerContext;
245246
(void)Row;
@@ -303,7 +304,7 @@ ares_status_t ares_event_configchg_init(ares_event_configchg_t **configchg,
303304
* that didn't get triggered either.
304305
*/
305306
if (NotifyIpInterfaceChange(
306-
AF_UNSPEC, (PIPINTERFACE_CHANGE_CALLBACK)ares_event_configchg_ip_cb,
307+
AF_UNSPEC, ares_event_configchg_ip_cb,
307308
*configchg, FALSE, &c->ifchg_hnd) != NO_ERROR) {
308309
status = ARES_ESERVFAIL;
309310
goto done;

0 commit comments

Comments
 (0)
0