atl: Fix AtlAxAttachControl wine check.
This commit is contained in:
parent
d640d3fa5c
commit
e4bb3ae755
|
@ -1053,6 +1053,9 @@ HRESULT WINAPI AtlAxAttachControl(IUnknown* pControl, HWND hWnd, IUnknown** ppUn
|
|||
*ppUnkContainer = (IUnknown*) pUnkContainer;
|
||||
}
|
||||
|
||||
if(!hWnd)
|
||||
return S_FALSE;
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue