Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-14469

lpDirectory must have priority in ShellExecuteEx

    XMLWordPrintable

Details

    Description

      For example, there are two files with the same name: sample.txt

      First file placed to:
      C:\sample.txt

      Second file placed to:
      C:\ReactOS\sample.txt (C:\Windows\sample.txt - for windows)

      I use ShellExecuteEx with this parameters:

      lpFile=sample.txt
      lpDirectory=C:\

      Windows result:
      Opens: C:\sample.txt

      ROS result:
      Opens: C:\ReactOS\sample.txt

      If "C:\ReactOS\sample.txt" not exist then ROS open "C:\sample.txt".

      This is the wrong file search order. ShellExecuteEx must first perform a search in lpDirectory if specified.

      Attachments

        Issue Links

          Activity

            People

              hbelusca hbelusca
              amber amber
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: