Huw Davies (@huw) commented about dlls/shell32/shlview_cmenu.c:
IShellLinkW_Release(shelllink);
return;
- }
- SHGetPathFromIDListW(This->pidl, root);
- if (PathIsSystemFolderW(root, 0)) {
if (!SHGetSpecialFolderPathW(HWND_DESKTOP, root, CSIDL_DESKTOP, FALSE)) {
ERR("Target folder is System folder and Failed to get Desktop directory\n");
IShellLinkW_Release(shelllink);
return;
}
- }
- do {
if (counter == 1) {
wsprintfW(wszLinkFilename, L"%s - %s", wszFilename, shortcutW);
Couldn't the `".lnk"` be appended here?