mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
[SHELLFIND] Remove redundant check
This commit is contained in:
parent
2513c47452
commit
0eee3ed368
1 changed files with 1 additions and 8 deletions
|
@ -364,15 +364,8 @@ HRESULT STDMETHODCALLTYPE CSearchBar::SetSite(IUnknown *pUnkSite)
|
||||||
{
|
{
|
||||||
DestroyWindow();
|
DestroyWindow();
|
||||||
m_hWnd = NULL;
|
m_hWnd = NULL;
|
||||||
}
|
|
||||||
|
|
||||||
if (pUnkSite != m_pSite)
|
|
||||||
{
|
|
||||||
m_pSite = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!pUnkSite)
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
hr = IUnknown_GetWindow(pUnkSite, &parentWnd);
|
hr = IUnknown_GetWindow(pUnkSite, &parentWnd);
|
||||||
if (!SUCCEEDED(hr))
|
if (!SUCCEEDED(hr))
|
||||||
|
|
Loading…
Reference in a new issue