From c95ec7236c8d7133ebe5099724ebb4c32612085a Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Wed, 13 Sep 2023 15:33:23 -0700 Subject: [PATCH] winspool.drv: Ensure unixlib function tables and enum stay in sync. --- dlls/winspool.drv/cups.c | 4 ++++ dlls/winspool.drv/wspool.h | 1 + 2 files changed, 5 insertions(+) diff --git a/dlls/winspool.drv/cups.c b/dlls/winspool.drv/cups.c index 1034277aad6..6ad270709cc 100644 --- a/dlls/winspool.drv/cups.c +++ b/dlls/winspool.drv/cups.c @@ -433,6 +433,8 @@ const unixlib_entry_t __wine_unix_call_funcs[] = get_ppd, }; +C_ASSERT( ARRAYSIZE(__wine_unix_call_funcs) == unix_funcs_count ); + #ifdef _WIN64 typedef ULONG PTR32; @@ -523,4 +525,6 @@ const unixlib_entry_t __wine_unix_call_wow64_funcs[] = wow64_get_ppd, }; +C_ASSERT( ARRAYSIZE(__wine_unix_call_wow64_funcs) == unix_funcs_count ); + #endif /* _WIN64 */ diff --git a/dlls/winspool.drv/wspool.h b/dlls/winspool.drv/wspool.h index 6a8a4fee1a8..29a459ed91c 100644 --- a/dlls/winspool.drv/wspool.h +++ b/dlls/winspool.drv/wspool.h @@ -72,4 +72,5 @@ enum cups_funcs unix_enum_printers, unix_get_default_page_size, unix_get_ppd, + unix_funcs_count, };