Michael Stefaniuc : ddraw/tests: Use the available ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Wed Feb 21 18:39:40 CST 2018
Module: wine
Branch: master
Commit: f450e8e32fcd65ee669c12ede918e1e707d5ccbe
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f450e8e32fcd65ee669c12ede918e1e707d5ccbe
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Tue Feb 20 23:57:14 2018 +0100
ddraw/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ddraw/tests/ddraw4.c | 2 +-
dlls/ddraw/tests/ddraw7.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ddraw/tests/ddraw4.c b/dlls/ddraw/tests/ddraw4.c
index 02b10b5..550d73a 100644
--- a/dlls/ddraw/tests/ddraw4.c
+++ b/dlls/ddraw/tests/ddraw4.c
@@ -14265,7 +14265,7 @@ static void test_map_synchronisation(void)
tri_count = ((tri_count + 2 + 3) & ~3) - 2;
vb_desc.dwNumVertices = tri_count + 2;
- for (i = 0; i < sizeof(tests) / sizeof(*tests); ++i)
+ for (i = 0; i < ARRAY_SIZE(tests); ++i)
{
hr = IDirect3D3_CreateVertexBuffer(d3d, &vb_desc, &buffer, 0, NULL);
ok(SUCCEEDED(hr), "Failed to create vertex buffer, hr %#x.\n", hr);
diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c
index 43c52aa..3f433a6 100644
--- a/dlls/ddraw/tests/ddraw7.c
+++ b/dlls/ddraw/tests/ddraw7.c
@@ -13640,7 +13640,7 @@ static void test_map_synchronisation(void)
tri_count = ((tri_count + 2 + 3) & ~3) - 2;
vb_desc.dwNumVertices = tri_count + 2;
- for (i = 0; i < sizeof(tests) / sizeof(*tests); ++i)
+ for (i = 0; i < ARRAY_SIZE(tests); ++i)
{
hr = IDirect3D7_CreateVertexBuffer(d3d, &vb_desc, &buffer, 0);
ok(SUCCEEDED(hr), "Failed to create vertex buffer, hr %#x.\n", hr);
More information about the wine-cvs
mailing list