mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[WINESYNC] msiexec: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id effac73e7275e40d717ccf21af84b34fe3e0844a by Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
4c8ffed7ec
commit
426052d1aa
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue