[PATCH] qcap: Use the ARRAY_SIZE() macro
8 Aug
2018
8 Aug
'18
9:30 a.m.
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/qcap/qcap_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/qcap/qcap_main.c b/dlls/qcap/qcap_main.c index bc0b903d0b..c5b4931c90 100644 --- a/dlls/qcap/qcap_main.c +++ b/dlls/qcap/qcap_main.c @@ -142,7 +142,7 @@ FactoryTemplate const g_Templates[] = { } }; -int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]); +const int g_cTemplates = ARRAY_SIZE(g_Templates); /*********************************************************************** * Dll EntryPoint (QCAP.@) -- 2.14.4
2690
Age (days ago)
2690
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Stefaniuc