Michael Stefaniuc : jscript/tests: Use the available ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Wed Jun 6 15:21:48 CDT 2018
Module: wine
Branch: master
Commit: 05253c75ccae0a60fec706b1c26251427e4adf06
URL: https://source.winehq.org/git/wine.git/?a=commit;h=05253c75ccae0a60fec706b1c26251427e4adf06
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Tue Jun 5 20:09:44 2018 +0200
jscript/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard 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 887b264..77cd74e 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);
More information about the wine-cvs
mailing list