https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d03e237837924b33112f3…
commit d03e237837924b33112f3d6b514bb2b42498d958
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sat Jan 26 13:08:26 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sat Jan 26 13:08:26 2019 +0100
[IMAGEHLP_WINETEST] Sync with Wine Staging 4.0. CORE-15682
---
modules/rostests/winetests/imagehlp/image.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/rostests/winetests/imagehlp/image.c
b/modules/rostests/winetests/imagehlp/image.c
index 0d6521b45b..9fb1032356 100644
--- a/modules/rostests/winetests/imagehlp/image.c
+++ b/modules/rostests/winetests/imagehlp/image.c
@@ -229,7 +229,7 @@ static const struct expected_blob b1[] = {
{FILE_TOTAL-FILE_IDATA-FIELD_OFFSET(struct Imports, ibn),
&bin.idata_section.ibn}
};
-static const struct expected_update_accum a1 = { sizeof(b1) / sizeof(b1[0]), b1, TRUE };
+static const struct expected_update_accum a1 = { ARRAY_SIZE(b1), b1, TRUE };
static const struct expected_blob b2[] = {
{FILE_PE_START, &bin},
@@ -239,7 +239,7 @@ static const struct expected_blob b2[] = {
{FILE_IDATA-FILE_TEXT, &bin.text_section},
{FILE_TOTAL-FILE_IDATA, &bin.idata_section}
};
-static const struct expected_update_accum a2 = { sizeof(b2) / sizeof(b2[0]), b2, FALSE
};
+static const struct expected_update_accum a2 = { ARRAY_SIZE(b2), b2, FALSE };
/* Creates a test file and returns a handle to it. The file's path is returned
* in temp_file, which must be at least MAX_PATH characters in length.