iphlpapi: MacOS struct sockaddr is 4 byte aligned on 64 bit.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Stefan Dösinger 2020-04-12 14:24:54 +02:00 committed by Alexandre Julliard
parent 22cdc4e3da
commit 594dfe6875
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@
#ifndef ROUNDUP
#define ROUNDUP(a) \
((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
((a) > 0 ? (1 + (((a) - 1) | (sizeof(int) - 1))) : sizeof(int))
#endif
#ifndef ADVANCE
#define ADVANCE(x, n) (x += ROUNDUP(((struct sockaddr *)n)->sa_len))