https://git.reactos.org/?p=reactos.git;a=commitdiff;h=426052d1aa4e58944a544…
commit 426052d1aa4e58944a544ec81cb36b536f3674d9
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sat Mar 12 23:50:36 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:27:58 2022 +0100
[WINESYNC] msiexec: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org>
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id effac73e7275e40d717ccf21af84b34fe3e0844a by Michael Stefaniuc
<mstefani(a)winehq.org>
---
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)