mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 23:38:27 +00:00
atl100/tests: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dc235ab4a7
commit
0c28ca8d50
|
@ -304,8 +304,8 @@ static void test_typelib(void)
|
||||||
FreeLibrary(inst);
|
FreeLibrary(inst);
|
||||||
|
|
||||||
len = SysStringLen(path);
|
len = SysStringLen(path);
|
||||||
ok(len > sizeof(scrrun_dll_suffixW)/sizeof(WCHAR)
|
ok(len > ARRAY_SIZE(scrrun_dll_suffixW)
|
||||||
&& lstrcmpiW(path+len-sizeof(scrrun_dll_suffixW)/sizeof(WCHAR), scrrun_dll_suffixW),
|
&& lstrcmpiW(path+len-ARRAY_SIZE(scrrun_dll_suffixW), scrrun_dll_suffixW),
|
||||||
"unexpected path %s\n", wine_dbgstr_w(path));
|
"unexpected path %s\n", wine_dbgstr_w(path));
|
||||||
SysFreeString(path);
|
SysFreeString(path);
|
||||||
ok(typelib != NULL, "typelib == NULL\n");
|
ok(typelib != NULL, "typelib == NULL\n");
|
||||||
|
@ -320,8 +320,8 @@ static void test_typelib(void)
|
||||||
FreeLibrary(inst);
|
FreeLibrary(inst);
|
||||||
|
|
||||||
len = SysStringLen(path);
|
len = SysStringLen(path);
|
||||||
ok(len > sizeof(mshtml_tlb_suffixW)/sizeof(WCHAR)
|
ok(len > ARRAY_SIZE(mshtml_tlb_suffixW)
|
||||||
&& lstrcmpiW(path+len-sizeof(mshtml_tlb_suffixW)/sizeof(WCHAR), mshtml_tlb_suffixW),
|
&& lstrcmpiW(path+len-ARRAY_SIZE(mshtml_tlb_suffixW), mshtml_tlb_suffixW),
|
||||||
"unexpected path %s\n", wine_dbgstr_w(path));
|
"unexpected path %s\n", wine_dbgstr_w(path));
|
||||||
SysFreeString(path);
|
SysFreeString(path);
|
||||||
ok(typelib != NULL, "typelib == NULL\n");
|
ok(typelib != NULL, "typelib == NULL\n");
|
||||||
|
|
Loading…
Reference in a new issue