https://git.reactos.org/?p=reactos.git;a=commitdiff;h=426052d1aa4e58944a544ec81cb36b536f3674d9

commit 426052d1aa4e58944a544ec81cb36b536f3674d9
Author:     winesync <[email protected]>
AuthorDate: Sat Mar 12 23:50:36 2022 +0100
Commit:     Mark Jansen <[email protected]>
CommitDate: Sun Mar 20 19:27:58 2022 +0100

    [WINESYNC] msiexec: Use the ARRAY_SIZE() macro.
    
    Signed-off-by: Michael Stefaniuc <[email protected]>
    Signed-off-by: Hans Leidekker <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id effac73e7275e40d717ccf21af84b34fe3e0844a by Michael 
Stefaniuc <[email protected]>
---
 base/system/msiexec/msiexec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/system/msiexec/msiexec.c b/base/system/msiexec/msiexec.c
index 5a471a21840..47cef7e0fa2 100644
--- a/base/system/msiexec/msiexec.c
+++ b/base/system/msiexec/msiexec.c
@@ -71,11 +71,11 @@ static void ShowUsage(int ExitCode)
 
     /* MsiGetFileVersion need the full path */
     *filename = 0;
-    res = GetModuleFileNameW(hmsi, filename, sizeof(filename) / 
sizeof(filename[0]));
+    res = GetModuleFileNameW(hmsi, filename, ARRAY_SIZE(filename));
     if (!res)
         WINE_ERR("GetModuleFileName failed: %d\n", GetLastError());
 
-    len = sizeof(msiexec_version) / sizeof(msiexec_version[0]);
+    len = ARRAY_SIZE(msiexec_version);
     *msiexec_version = 0;
     res = MsiGetFileVersionW(filename, msiexec_version, &len, NULL, NULL);
     if (res)

Reply via email to