mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
ieframe/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dd8a9897ef
commit
41623d6216
2 changed files with 4 additions and 4 deletions
|
@ -331,7 +331,7 @@ static void test_Load(void)
|
|||
GetTempPathW(MAX_PATH, file_path);
|
||||
lstrcatW(file_path, test_urlW);
|
||||
|
||||
for(test = load_tests; test < load_tests + sizeof(load_tests)/sizeof(*load_tests); test++) {
|
||||
for(test = load_tests; test < load_tests + ARRAY_SIZE(load_tests); test++) {
|
||||
IPropertySetStorage *propsetstorage;
|
||||
IPropertyStorage *propstorage;
|
||||
PROPVARIANT v;
|
||||
|
|
|
@ -2167,7 +2167,7 @@ static void test_EnumVerbs(IWebBrowser2 *wb)
|
|||
fetched = 0xdeadbeef;
|
||||
memset(verbs, 0xa, sizeof(verbs));
|
||||
verbs[1].lVerb = 0xdeadbeef;
|
||||
hres = IEnumOLEVERB_Next(enum_verbs, sizeof(verbs)/sizeof(*verbs), verbs, &fetched);
|
||||
hres = IEnumOLEVERB_Next(enum_verbs, ARRAY_SIZE(verbs), verbs, &fetched);
|
||||
ok(hres == S_OK, "Next failed: %08x\n", hres);
|
||||
ok(!fetched, "fetched = %d\n", fetched);
|
||||
/* Although fetched==0, an element is returned. */
|
||||
|
@ -2184,12 +2184,12 @@ static void test_EnumVerbs(IWebBrowser2 *wb)
|
|||
fetched = 0xdeadbeef;
|
||||
memset(verbs, 0xa, sizeof(verbs));
|
||||
verbs[0].lVerb = 0xdeadbeef;
|
||||
hres = IEnumOLEVERB_Next(enum_verbs, sizeof(verbs)/sizeof(*verbs), verbs, &fetched);
|
||||
hres = IEnumOLEVERB_Next(enum_verbs, ARRAY_SIZE(verbs), verbs, &fetched);
|
||||
todo_wine ok(hres == S_OK, "Next failed: %08x\n", hres);
|
||||
todo_wine ok(fetched == 1, "fetched = %d\n", fetched);
|
||||
todo_wine ok(verbs[0].lVerb != 0xdeadbeef, "verbs[0].lVerb = %x\n", verbs[0].lVerb);
|
||||
|
||||
hres = IEnumOLEVERB_Next(enum_verbs, sizeof(verbs)/sizeof(*verbs), verbs, &fetched);
|
||||
hres = IEnumOLEVERB_Next(enum_verbs, ARRAY_SIZE(verbs), verbs, &fetched);
|
||||
ok(hres == S_FALSE, "Next failed: %08x\n", hres);
|
||||
ok(!fetched, "fetched = %d\n", fetched);
|
||||
|
||||
|
|
Loading…
Reference in a new issue