diff --git a/reactos/subsys/system/explorer/shell/entries.cpp b/reactos/subsys/system/explorer/shell/entries.cpp index dcf89d8bf56..eda33e3cb8a 100644 --- a/reactos/subsys/system/explorer/shell/entries.cpp +++ b/reactos/subsys/system/explorer/shell/entries.cpp @@ -404,7 +404,10 @@ BOOL Entry::launch_entry(HWND hwnd, UINT nCmdShow) if (!get_path(cmd)) return FALSE; - // start program, open document... + // add path to the recent file list + SHAddToRecentDocs(SHARD_PATH, cmd); + + // start program, open document... return launch_file(hwnd, cmd, nCmdShow); } diff --git a/reactos/subsys/system/explorer/shell/shellfs.cpp b/reactos/subsys/system/explorer/shell/shellfs.cpp index 8e4b7070c19..a9a953fccfd 100644 --- a/reactos/subsys/system/explorer/shell/shellfs.cpp +++ b/reactos/subsys/system/explorer/shell/shellfs.cpp @@ -190,6 +190,9 @@ BOOL ShellEntry::launch_entry(HWND hwnd, UINT nCmdShow) ShellPath shell_path = create_absolute_pidl(); shexinfo.lpIDList = &*shell_path; + // add PIDL to the recent file list + SHAddToRecentDocs(SHARD_PIDL, shexinfo.lpIDList); + BOOL ret = TRUE; if (!ShellExecuteEx(&shexinfo)) {