[PATCH] jscript/tests: Use the available ARRAY_SIZE() macro

Michael Stefaniuc mstefani at winehq.org
Tue Jun 5 13:09:44 CDT 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/jscript/tests/run.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c
index 887b264d8f..77cd74ebb3 100644
--- a/dlls/jscript/tests/run.c
+++ b/dlls/jscript/tests/run.c
@@ -1316,7 +1316,7 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
 
     case DISPID_GLOBAL_TESTARGTYPES: {
         VARIANT args[8], v;
-        DISPPARAMS dp = {args, NULL, sizeof(args)/sizeof(*args), 0};
+        DISPPARAMS dp = {args, NULL, ARRAY_SIZE(args), 0};
         HRESULT hres;
 
         CHECK_EXPECT(global_testargtypes_i);
-- 
2.14.4




More information about the wine-devel mailing list