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

lpDirectory must have priority in ShellExecuteEx

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Fix Version/s: 0.4.10
    • Component/s: Shell
    • Labels:

      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

          Activity

            People

            • Assignee:
              hbelusca hbelusca
              Reporter:
              amber amber
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: