https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0d35c5159be80cb09d813…
commit 0d35c5159be80cb09d81348ececf402283f06743
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Fri Jan 25 13:14:00 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Fri Jan 25 13:14:00 2019 +0100
[ATL100_WINETEST] Sync with Wine Staging 4.0. CORE-15682
---
modules/rostests/winetests/atl100/atl.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/modules/rostests/winetests/atl100/atl.c
b/modules/rostests/winetests/atl100/atl.c
index fc195cb85b..4adc2f6f3d 100644
--- a/modules/rostests/winetests/atl100/atl.c
+++ b/modules/rostests/winetests/atl100/atl.c
@@ -304,8 +304,8 @@ static void test_typelib(void)
FreeLibrary(inst);
len = SysStringLen(path);
- ok(len > sizeof(scrrun_dll_suffixW)/sizeof(WCHAR)
- && lstrcmpiW(path+len-sizeof(scrrun_dll_suffixW)/sizeof(WCHAR),
scrrun_dll_suffixW),
+ ok(len > ARRAY_SIZE(scrrun_dll_suffixW)
+ && lstrcmpiW(path+len-ARRAY_SIZE(scrrun_dll_suffixW),
scrrun_dll_suffixW),
"unexpected path %s\n", wine_dbgstr_w(path));
SysFreeString(path);
ok(typelib != NULL, "typelib == NULL\n");
@@ -320,8 +320,8 @@ static void test_typelib(void)
FreeLibrary(inst);
len = SysStringLen(path);
- ok(len > sizeof(mshtml_tlb_suffixW)/sizeof(WCHAR)
- && lstrcmpiW(path+len-sizeof(mshtml_tlb_suffixW)/sizeof(WCHAR),
mshtml_tlb_suffixW),
+ ok(len > ARRAY_SIZE(mshtml_tlb_suffixW)
+ && lstrcmpiW(path+len-ARRAY_SIZE(mshtml_tlb_suffixW),
mshtml_tlb_suffixW),
"unexpected path %s\n", wine_dbgstr_w(path));
SysFreeString(path);
ok(typelib != NULL, "typelib == NULL\n");
@@ -964,6 +964,8 @@ static void test_AtlAxCreateControl(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(container != NULL, "returned %p!\n", container);
ok(control != NULL, "returned %p\n", control);
+ IUnknown_Release(container);
+ IUnknown_Release(control);
DestroyWindow(hwnd);
container = NULL;