atl: Fix AtlAxAttachControl wine check.

This commit is contained in:
Alexandre Goujon 2010-08-15 12:01:28 +02:00 committed by Alexandre Julliard
parent d640d3fa5c
commit e4bb3ae755
2 changed files with 3 additions and 2 deletions

View File

@ -1053,6 +1053,9 @@ HRESULT WINAPI AtlAxAttachControl(IUnknown* pControl, HWND hWnd, IUnknown** ppUn
*ppUnkContainer = (IUnknown*) pUnkContainer;
}
if(!hWnd)
return S_FALSE;
return hr;
}

View File

@ -94,12 +94,10 @@ static void test_AtlAxAttachControl(void)
}
hr = pAtlAxAttachControl(pObj, NULL, NULL);
todo_wine
ok(hr == S_FALSE, "Expected AtlAxAttachControl to return S_FALSE, got 0x%08x\n", hr);
pContainer = (IUnknown *)0xdeadbeef;
hr = pAtlAxAttachControl(pObj, NULL, &pContainer);
todo_wine
ok(hr == S_FALSE, "Expected AtlAxAttachControl to return S_FALSE, got 0x%08x\n", hr);
ok(pContainer != (IUnknown *)0xdeadbeef &&
pContainer != NULL,