[SHELLFIND] Remove redundant check
authorBrock Mammen <brockmammen@gmail.com>
Tue, 27 Aug 2019 13:17:12 +0000 (08:17 -0500)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 15 Sep 2019 16:46:36 +0000 (19:46 +0300)
dll/win32/browseui/shellfind/CSearchBar.cpp

index 295fec2..bcb7016 100644 (file)
@@ -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))