Uploaded image for project: 'ReactOS Test Suite'
  1. ReactOS Test Suite
  2. ROSTESTS-159

PATCH: Several apitests for SetupDiInstallClassExA

    XMLWordPrintable

Details

    Description

      This patch adds several new tests for SetupDiInstallClassExA.
      Basically it proves that SetupDiInstallClassExA shouldn't fail if there isn't a Current32Install.Nt.Service section in the INF file.

      Our current API fails* if there is none:

      /* Install .Services section */
      lstrcatW(SectionName, DotServices);
      ret = SetupInstallServicesFromInfSectionExW( hInf, SectionName, 0, hDeviceInfo, NULL, NULL, NULL);
      if (!ret)
      goto cleanup;

      *Actually it doesn't fail due a bug in SetupInstallServicesFromInfSectionExW,which returns true even if the SectionName doesn't exist at all. Fixing that bug, this bug is revealed.

      Attachments

        1. setupapinew.patch
          9 kB
        2. setupapinew.patch
          13 kB
        3. setupapinew.patch
          13 kB
        4. setupapinew.patch
          13 kB

        Issue Links

          Activity

            People

              AmineKhaldi AmineKhaldi
              vicmarcal vicmarcal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: