mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[SHELLFIND] Remove redundant check
This commit is contained in:
committed by
Giannis Adamopoulos
parent
2513c47452
commit
0eee3ed368
@@ -364,15 +364,8 @@ HRESULT STDMETHODCALLTYPE CSearchBar::SetSite(IUnknown *pUnkSite)
|
||||
{
|
||||
DestroyWindow();
|
||||
m_hWnd = NULL;
|
||||
}
|
||||
|
||||
if (pUnkSite != m_pSite)
|
||||
{
|
||||
m_pSite = NULL;
|
||||
}
|
||||
|
||||
if(!pUnkSite)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
hr = IUnknown_GetWindow(pUnkSite, &parentWnd);
|
||||
if (!SUCCEEDED(hr))
|
||||
|
||||
Reference in New Issue
Block a user