[APPWIZ][SHELL32] Improve 'Create Shortcut' dialog (#6550)

Now we can open special folder shortcut, thanks to #6546.
Let's allow users to create various shortcut files.
JIRA issue: CORE-5866
- Remove BIF_RETURNONLYFSDIRS flag because
  the system can open special folder shortcuts now.
- Add LPITEMIDLIST pidlTarget to CREATE_LINK_CONTEXT
  structure.
- Use pidlTarget if the target is a special folder.
- Fix CShellLink::DoOpen for arguments.
This commit is contained in:
Katayama Hirofumi MZ
2024-02-28 15:22:44 +09:00
committed by GitHub
parent 776c3a3495
commit 1d1472c78e
3 changed files with 71 additions and 50 deletions

View File

@@ -2635,8 +2635,8 @@ HRESULT CShellLink::DoOpen(LPCMINVOKECOMMANDINFO lpici)
else
{
sei.lpFile = path;
sei.lpParameters = args;
}
sei.lpParameters = args;
sei.lpClass = m_sLinkPath;
sei.nShow = m_Header.nShowCommand;
sei.lpDirectory = m_sWorkDir;