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

commit e7a5850d65bf0b6b6bb4c5081bb1ef4a6ca5f3ab
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Mon Jun 28 04:11:00 2021 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Mon Jun 28 04:11:00 2021 +0200

    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))
             {

Reply via email to