Module: wine Branch: master Commit: 4dc31f923b3cca3df5bf253619cf58c9d5c4adb9 URL: https://gitlab.winehq.org/wine/wine/-/commit/4dc31f923b3cca3df5bf253619cf58c...
Author: Brendan Shanks bshanks@codeweavers.com Date: Mon Oct 23 15:16:12 2023 -0500
dnsapi: Ensure unixlib function tables and enum stay in sync.
---
dlls/dnsapi/dnsapi.h | 1 + dlls/dnsapi/libresolv.c | 4 ++++ 2 files changed, 5 insertions(+)
diff --git a/dlls/dnsapi/dnsapi.h b/dlls/dnsapi/dnsapi.h index 89324dd9c29..eff5e3582cf 100644 --- a/dlls/dnsapi/dnsapi.h +++ b/dlls/dnsapi/dnsapi.h @@ -127,6 +127,7 @@ enum unix_funcs unix_get_serverlist, unix_set_serverlist, unix_query, + unix_funcs_count };
#define RESOLV_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params ) diff --git a/dlls/dnsapi/libresolv.c b/dlls/dnsapi/libresolv.c index fd645d53fd7..d68ca1fd9bf 100644 --- a/dlls/dnsapi/libresolv.c +++ b/dlls/dnsapi/libresolv.c @@ -344,6 +344,8 @@ const unixlib_entry_t __wine_unix_call_funcs[] = resolv_query, };
+C_ASSERT( ARRAYSIZE(__wine_unix_call_funcs) == unix_funcs_count ); + #ifdef _WIN64
typedef ULONG PTR32; @@ -415,6 +417,8 @@ const unixlib_entry_t __wine_unix_call_wow64_funcs[] = wow64_resolv_query, };
+C_ASSERT( ARRAYSIZE(__wine_unix_call_wow64_funcs) == unix_funcs_count ); + #endif /* _WIN64 */
#endif /* HAVE_RESOLV */