[SHELL32] Make SHFindFiles open the search results folder
authorBrock Mammen <brockmammen@gmail.com>
Wed, 21 Aug 2019 20:32:20 +0000 (15:32 -0500)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 15 Sep 2019 16:46:36 +0000 (19:46 +0300)
dll/win32/shell32/wine/shellord.c

index ca737c1..fac2d20 100644 (file)
@@ -1826,8 +1826,14 @@ HRESULT WINAPI SHCreateStdEnumFmtEtc(
  */
 BOOL WINAPI SHFindFiles( LPCITEMIDLIST pidlFolder, LPCITEMIDLIST pidlSaveFile )
 {
  */
 BOOL WINAPI SHFindFiles( LPCITEMIDLIST pidlFolder, LPCITEMIDLIST pidlSaveFile )
 {
-    FIXME("%p %p\n", pidlFolder, pidlSaveFile );
-    return FALSE;
+    FIXME("params ignored: %p %p\n", pidlFolder, pidlSaveFile);
+    if (SHRestricted(REST_NOFIND))
+    {
+        return FALSE;
+    }
+    /* Open the search results folder */
+    /* FIXME: CSearchBar should be opened as well */
+    return ShellExecuteW(NULL, NULL, L"explorer.exe", L"::{E17D4FC0-5564-11D1-83F2-00A0C90DC849}", NULL, SW_SHOWNORMAL) > (HINSTANCE)32;
 }
 
 /*************************************************************************
 }
 
 /*************************************************************************