add opened files to the "recent documents" list
authorMartin Fuchs <fuchs.martin@gmail.com>
Wed, 3 Mar 2004 20:29:52 +0000 (20:29 +0000)
committerMartin Fuchs <fuchs.martin@gmail.com>
Wed, 3 Mar 2004 20:29:52 +0000 (20:29 +0000)
svn path=/trunk/; revision=8522

reactos/subsys/system/explorer/taskbar/startmenu.cpp

index fe77f92..972d584 100644 (file)
@@ -1125,6 +1125,9 @@ void StartMenu::ActivateEntry(int id, const ShellEntrySet& entries)
 
                        shexinfo.lpIDList = &*shell_path;
 
+                        // add PIDL to the recent file list
+                       SHAddToRecentDocs(SHARD_PIDL, shexinfo.lpIDList);
+
                        if (!ShellExecuteEx(&shexinfo))
                                display_error(hparent, GetLastError());