dinput: Fix device enumeration by DX8 device type.

This commit is contained in:
Vitaliy Margolen 2011-12-01 21:08:14 -07:00 committed by Alexandre Julliard
parent c50f25e91b
commit 7260132c5d
1 changed files with 2 additions and 2 deletions

View File

@ -359,7 +359,7 @@ static HRESULT WINAPI IDirectInputAImpl_EnumDevices(
if (!lpCallback ||
dwFlags & ~(DIEDFL_ATTACHEDONLY | DIEDFL_FORCEFEEDBACK | DIEDFL_INCLUDEALIASES | DIEDFL_INCLUDEPHANTOMS | DIEDFL_INCLUDEHIDDEN) ||
dwDevType > 4)
(dwDevType > DI8DEVCLASS_GAMECTRL && dwDevType < DI8DEVTYPE_DEVICE) || dwDevType > DI8DEVTYPE_SUPPLEMENTAL)
return DIERR_INVALIDPARAM;
if (!This->initialized)
@ -398,7 +398,7 @@ static HRESULT WINAPI IDirectInputWImpl_EnumDevices(
if (!lpCallback ||
dwFlags & ~(DIEDFL_ATTACHEDONLY | DIEDFL_FORCEFEEDBACK | DIEDFL_INCLUDEALIASES | DIEDFL_INCLUDEPHANTOMS | DIEDFL_INCLUDEHIDDEN) ||
dwDevType > 4)
(dwDevType > DI8DEVCLASS_GAMECTRL && dwDevType < DI8DEVTYPE_DEVICE) || dwDevType > DI8DEVTYPE_SUPPLEMENTAL)
return DIERR_INVALIDPARAM;
if (!This->initialized)