https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3249a003648aff04bbef46a0ff74a76fe0c6614b

commit 3249a003648aff04bbef46a0ff74a76fe0c6614b
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Mon Jun 28 01:59:31 2021 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Mon Jun 28 02:19:30 2021 +0200

    [SHELL32] Don't check for link files being targets for other link files. 
Addendum to 3a822e4f.
---
 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 cd5d74e2c3f..cef374175aa 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_TRYPROGRAMEXTENSIONS);
+            PathResolveW(szPath, NULL, PRF_DONTFINDLNK | 
PRF_TRYPROGRAMEXTENSIONS);
 
             if (PathIsFileSpecW(szPath))
             {

Reply via email to