mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 11:42:24 +00:00
[SHELL32] CDefaultContextMenu must forward the .lnk path (#7264)
Forward the .lnk path (if any) so consrv gets STARTF_TITLEISLINKNAME and can apply console properties and icon from the shortcut.
This commit is contained in:
parent
44662eaf62
commit
d009de44ad
1 changed files with 3 additions and 0 deletions
|
@ -1357,6 +1357,9 @@ CDefaultContextMenu::InvokePidl(LPCMINVOKECOMMANDINFOEX lpcmi, LPCITEMIDLIST pid
|
|||
else if (!StrIsNullOrEmpty(lpcmi->lpParameters) && __SHCloneStrAtoW(&pszParamsW, lpcmi->lpParameters))
|
||||
sei.lpParameters = pszParamsW;
|
||||
|
||||
if (!sei.lpClass && (lpcmi->fMask & (CMIC_MASK_HASLINKNAME | CMIC_MASK_HASTITLE)) && unicode)
|
||||
sei.lpClass = lpcmi->lpTitleW; // Forward .lnk path from CShellLink::DoOpen (for consrv STARTF_TITLEISLINKNAME)
|
||||
|
||||
ShellExecuteExW(&sei);
|
||||
ILFree(pidlFull);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue