Module: wine Branch: master Commit: 495e1a0c5b4fc90c557ef4198bdc0758195d180d URL: https://gitlab.winehq.org/wine/wine/-/commit/495e1a0c5b4fc90c557ef4198bdc075...
Author: Brendan Shanks bshanks@codeweavers.com Date: Wed Sep 13 15:52:50 2023 -0700
crypt32: Ensure unixlib function tables and enum stay in sync.
---
dlls/crypt32/crypt32_private.h | 1 + dlls/crypt32/unixlib.c | 4 ++++ 2 files changed, 5 insertions(+)
diff --git a/dlls/crypt32/crypt32_private.h b/dlls/crypt32/crypt32_private.h index b5beb1b8a0e..fd1157ec295 100644 --- a/dlls/crypt32/crypt32_private.h +++ b/dlls/crypt32/crypt32_private.h @@ -510,6 +510,7 @@ enum unix_funcs unix_import_store_cert, unix_close_cert_store, unix_enum_root_certs, + unix_funcs_count, };
#define CRYPT32_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params ) diff --git a/dlls/crypt32/unixlib.c b/dlls/crypt32/unixlib.c index e90642fb0d5..72770caab5f 100644 --- a/dlls/crypt32/unixlib.c +++ b/dlls/crypt32/unixlib.c @@ -695,6 +695,8 @@ const unixlib_entry_t __wine_unix_call_funcs[] = enum_root_certs, };
+C_ASSERT( ARRAYSIZE(__wine_unix_call_funcs) == unix_funcs_count ); + #ifdef _WIN64
typedef ULONG PTR32; @@ -796,4 +798,6 @@ const unixlib_entry_t __wine_unix_call_wow64_funcs[] = wow64_enum_root_certs, };
+C_ASSERT( ARRAYSIZE(__wine_unix_call_wow64_funcs) == unix_funcs_count ); + #endif /* _WIN64 */