From e7a5850d65bf0b6b6bb4c5081bb1ef4a6ca5f3ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 28 Jun 2021 04:11:00 +0200 Subject: [PATCH] Revert "[SHELL32] Don't check for link files being targets for other link files. Addendum to 3a822e4f." This reverts commit 3249a003648aff04bbef46a0ff74a76fe0c6614b. --- dll/win32/shell32/CShellLink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/shell32/CShellLink.cpp b/dll/win32/shell32/CShellLink.cpp index cef374175aa..cd5d74e2c3f 100644 --- a/dll/win32/shell32/CShellLink.cpp +++ b/dll/win32/shell32/CShellLink.cpp @@ -2207,7 +2207,7 @@ HRESULT CShellLink::SetTargetFromPIDLOrPath(LPCITEMIDLIST pidl, LPCWSTR pszFile) /* This failed, try to resolve the path, then create a simple PIDL */ StringCchCopyW(szPath, _countof(szPath), pszFile); - PathResolveW(szPath, NULL, PRF_DONTFINDLNK | PRF_TRYPROGRAMEXTENSIONS); + PathResolveW(szPath, NULL, PRF_TRYPROGRAMEXTENSIONS); if (PathIsFileSpecW(szPath)) {