30 May
2024
30 May
'24
9:29 a.m.
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?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5373#note_71736