[PATCH] qcap: Use the ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Wed Aug 8 04:30:12 CDT 2018
Signed-off-by: Michael Stefaniuc <mstefani at 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
More information about the wine-devel
mailing list