https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a4deb3f8f157f2761323a…
commit a4deb3f8f157f2761323aeaada3a7a52bd6baec4
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Nov 23 14:10:13 2019 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Nov 23 14:10:13 2019 +0900
[SHELL32] Change icon of SendTo My Documents (#2083)
Follow-up of #2027. CORE-16496
---
dll/win32/shell32/wine/shellpath.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dll/win32/shell32/wine/shellpath.c b/dll/win32/shell32/wine/shellpath.c
index 38e8dbebd96..99c78c8554d 100644
--- a/dll/win32/shell32/wine/shellpath.c
+++ b/dll/win32/shell32/wine/shellpath.c
@@ -2198,6 +2198,7 @@ HRESULT DoCreateSendToFiles(LPCWSTR pszSendTo)
{
WCHAR szTarget[MAX_PATH];
WCHAR szSendToFile[MAX_PATH];
+ WCHAR szShell32[MAX_PATH];
HRESULT hr;
SHGetSpecialFolderPathW(NULL, szTarget, CSIDL_MYDOCUMENTS, TRUE);
@@ -2206,7 +2207,11 @@ HRESULT DoCreateSendToFiles(LPCWSTR pszSendTo)
PathAppendW(szSendToFile, PathFindFileNameW(szTarget));
StringCbCatW(szSendToFile, sizeof(szSendToFile), L".lnk");
- hr = CreateShellLink(szSendToFile, szTarget, NULL, NULL, NULL, -1, NULL);
+ GetSystemDirectoryW(szShell32, ARRAY_SIZE(szShell32));
+ PathAppendW(szShell32, L"shell32.dll");
+
+ hr = CreateShellLink(szSendToFile, szTarget, NULL, NULL,
+ szShell32, -IDI_SHELL_MY_DOCUMENTS, NULL);
if (FAILED_UNEXPECTEDLY(hr))
return hr;