Commit 8226f877 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

xaudio2/tests: Use the available ARRAY_SIZE() macro.

parent c6418521
...@@ -1004,7 +1004,7 @@ static void test_xapo_creation_legacy(const char *module, unsigned int version) ...@@ -1004,7 +1004,7 @@ static void test_xapo_creation_legacy(const char *module, unsigned int version)
} }
if(pCreateFX){ if(pCreateFX){
for(i = 0; i < sizeof(const_clsids) / sizeof(*const_clsids); ++i){ for(i = 0; i < ARRAY_SIZE(const_clsids); ++i){
hr = pCreateFX(const_clsids[i].clsid, &fx_unk); hr = pCreateFX(const_clsids[i].clsid, &fx_unk);
todo_wine_if(const_clsids[i].todo) todo_wine_if(const_clsids[i].todo)
ok(hr == S_OK, "%s: CreateFX(%s) failed: %08x\n", module, wine_dbgstr_guid(const_clsids[i].clsid), hr); ok(hr == S_OK, "%s: CreateFX(%s) failed: %08x\n", module, wine_dbgstr_guid(const_clsids[i].clsid), hr);
...@@ -1090,7 +1090,7 @@ static void test_xapo_creation_modern(const char *module) ...@@ -1090,7 +1090,7 @@ static void test_xapo_creation_modern(const char *module)
} }
if(pCreateFX){ if(pCreateFX){
for(i = 0; i < sizeof(const_clsids) / sizeof(*const_clsids); ++i){ for(i = 0; i < ARRAY_SIZE(const_clsids); ++i){
hr = pCreateFX(const_clsids[i].clsid, &fx_unk, NULL, 0); hr = pCreateFX(const_clsids[i].clsid, &fx_unk, NULL, 0);
todo_wine_if(const_clsids[i].todo) todo_wine_if(const_clsids[i].todo)
ok(hr == S_OK, "%s: CreateFX(%s) failed: %08x\n", module, wine_dbgstr_guid(const_clsids[i].clsid), hr); ok(hr == S_OK, "%s: CreateFX(%s) failed: %08x\n", module, wine_dbgstr_guid(const_clsids[i].clsid), hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment