• Florian Will's avatar
    dinput: Fix EnumObjects callback return value handling. · dcb84a45
    Florian Will authored
    This solves an issue in ZUSI 3 settings for DirectInput devices. Delphi
    defines the True value of the "C-compatible" LongBool type as -1, which
    wine interpreted to mean DIENUM_STOP because it is != DIENUM_CONTINUE.
    Change that logic so only an explicit DIENUM_STOP (= 0) return value
    stops the enumeration of objects.
    dcb84a45
device.c 78 KB