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

Setupapi SetupGetSourceFileLocationW return wrong result against Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • None
    • RosDlls
    • None

    Description

      for example, I have a setup inf contain the following lines:

      [SourceDisksNames]
      1 = %DiskDescription%,,,.\examplepath
      [SourceDisksFiles]
      example.sys = 1,

      when I call SetupGetSourceFileLocationW, it returns source_id = 1, buffer = ".\examplepath"

      on MS Win7, SetupGetSourceFileLocationW, returns source_id = 1, buffer = ""

      the bug is in func get_source_id: loc 354~~365, these checks modify the inf context, makes the segment pointer move to another segment

      Solution: comment loc 354~~365, modify loc 396

      if (SetupGetStringFieldW( context, 4, buffer, buffer_size, required_size ))

      to

      if (SetupGetStringFieldW( context, 2, buffer, buffer_size, required_size ))

      Attachments

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              hyperiris hyperiris
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: