Re: [PATCH v8 0/1] MR5373: shell32: Implement FCIDM_SHVIEW_CREATELINK
Nov. 13, 2025
11:07 a.m.
Sven Baars (@sbaars) commented about dlls/shell32/shlview_cmenu.c:
+ + if (!SUCCEEDED(IShellLinkW_QueryInterface(shelllink, &IID_IPersistFile, (LPVOID*)&persistfile))) + { + ERR("couldn't get IPersistFile interface\n"); + IShellLinkW_Release(shelllink); + return; + } + + do { + WCHAR *link_filename; + + if (counter == 1) + { + static const WCHAR *fmt = L"%s - %s.lnk"; + int length = wcslen(filename) + wcslen(shortcutW) + 7; /* length of the format*/ + link_filename = malloc((length + 1) * sizeof(WCHAR)); Should you check if malloc returns null?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5373#note_121810
134
Age (days ago)
134
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sven Baars (@sbaars)