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

EnumDevicesBySemantics doesn't check input size

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Untriaged
    • Priority: Trivial
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Wine
    • Labels:
    • Environment:

      bootcd-r75877(rosbe).iso. VBox 5.0.36 with additions, DirectX SDK (June 2005), Codeblocks and VBox D3D switcher.

      Description

      The following example has a mistake, IDirectInput8W::EnumDevicesBySemantics is called with ANSI parameters of smaller structure size. While Microsoft's DirectInput gives error on this, ROS dinput gives success leading to the interface not doing anything but not giving any error output.
      DirectInput also gives error if there are actions mapped to the same button.

        Attachments

        1. 12_correctprogram_ms.txt
          59 kB
        2. 12_duplicates_ms.txt
          63 kB
        3. 12_wrongsize_ms.txt
          68 kB
        4. ditest_correct.zip
          8 kB
        5. ditest.zip
          8 kB

          Activity

            People

            • Assignee:
              bug zilla Bug Zilla
              Reporter:
              CircularTriangle06 CircularTriangle06
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: