[ATL100_WINETEST] Sync with Wine Staging 3.17. CORE-15127
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 30 Sep 2018 23:27:20 +0000 (00:27 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 30 Sep 2018 23:27:20 +0000 (00:27 +0100)
modules/rostests/winetests/atl100/atl.c

index a287e38..fc195cb 100644 (file)
@@ -902,6 +902,7 @@ static void test_AtlAxAttachControl(void)
     hr = AtlAxAttachControl(control, hwnd, &container);
     ok(hr == S_OK, "Expected AtlAxAttachControl to return S_OK, got 0x%08x\n", hr);
     ok(container != NULL, "Expected not NULL!\n");
     hr = AtlAxAttachControl(control, hwnd, &container);
     ok(hr == S_OK, "Expected AtlAxAttachControl to return S_OK, got 0x%08x\n", hr);
     ok(container != NULL, "Expected not NULL!\n");
+    IUnknown_Release(container);
     val = GetWindowLongW(hwnd, GWLP_USERDATA);
     ok(val == 0xdeadbeef, "Expected unchanged, returned %08x\n", val);
     DestroyWindow(hwnd);
     val = GetWindowLongW(hwnd, GWLP_USERDATA);
     ok(val == 0xdeadbeef, "Expected unchanged, returned %08x\n", val);
     DestroyWindow(hwnd);