[PATCH] oleaut32: Use the ARRAY_SIZE() macro
15 Nov
2018
15 Nov
'18
7:42 p.m.
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/oleaut32/typelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index f32bed35f4..dfa8a0995a 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -6962,7 +6962,7 @@ DispCallFunc( rcount = 4; argspos += (argspos % 2); } - ntemp = sizeof(*arg) / sizeof(DWORD); + ntemp = ARRAY_SIZE(*arg); while (ntemp > 0) { if (rcount < 4) -- 2.14.5
2587
Age (days ago)
2587
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Stefaniuc