From ca86155b1acc6e3ce5cd47d00fd95d5e0958ae5e Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Thu, 14 Sep 2023 21:23:32 -0700 Subject: [PATCH] winepulse: Ensure unixlib function tables and enum stay in sync. --- dlls/winepulse.drv/pulse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winepulse.drv/pulse.c b/dlls/winepulse.drv/pulse.c index 370c361b02f..0ddddb00185 100644 --- a/dlls/winepulse.drv/pulse.c +++ b/dlls/winepulse.drv/pulse.c @@ -2572,6 +2572,8 @@ const unixlib_entry_t __wine_unix_call_funcs[] = pulse_not_implemented, }; +C_ASSERT(ARRAYSIZE(__wine_unix_call_funcs) == funcs_count); + #ifdef _WIN64 typedef UINT PTR32; @@ -3041,4 +3043,6 @@ const unixlib_entry_t __wine_unix_call_wow64_funcs[] = pulse_not_implemented, }; +C_ASSERT(ARRAYSIZE(__wine_unix_call_wow64_funcs) == funcs_count); + #endif /* _WIN64 */