[PATCH] oleaut32: Use the ARRAY_SIZE() macro

Michael Stefaniuc mstefani at winehq.org
Thu Nov 15 13:42:17 CST 2018


Signed-off-by: Michael Stefaniuc <mstefani at 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




More information about the wine-devel mailing list