mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[SHELL32] Opening Special Folder shortcut (#6546)
Fix opening special folder. JIRA issue: CORE-19464 In CShellLink::DoOpen, if there is a PIDL, then use it and set SEE_MASK_IDLIST flag.
This commit is contained in:
parent
d1ac33a9bd
commit
d634ef54e4
1 changed files with 10 additions and 2 deletions
|
@ -2627,11 +2627,19 @@ HRESULT CShellLink::DoOpen(LPCMINVOKECOMMANDINFO lpici)
|
|||
sei.cbSize = sizeof(sei);
|
||||
sei.fMask = SEE_MASK_HASLINKNAME | SEE_MASK_UNICODE |
|
||||
(lpici->fMask & (SEE_MASK_NOASYNC | SEE_MASK_ASYNCOK | SEE_MASK_FLAG_NO_UI));
|
||||
sei.lpFile = path;
|
||||
if (m_pPidl)
|
||||
{
|
||||
sei.lpIDList = m_pPidl;
|
||||
sei.fMask |= SEE_MASK_IDLIST;
|
||||
}
|
||||
else
|
||||
{
|
||||
sei.lpFile = path;
|
||||
sei.lpParameters = args;
|
||||
}
|
||||
sei.lpClass = m_sLinkPath;
|
||||
sei.nShow = m_Header.nShowCommand;
|
||||
sei.lpDirectory = m_sWorkDir;
|
||||
sei.lpParameters = args;
|
||||
sei.lpVerb = L"open";
|
||||
|
||||
// HACK for ShellExecuteExW
|
||||
|
|
Loading…
Reference in a new issue