Inconsistent argument type declaration in dinput.h: WriteEffectToFile()

Elias Vanderstuyft elias.vds at gmail.com
Mon Sep 21 15:15:32 CDT 2015


Hi everyone,

The docs of IDirectInputDevice8::WriteEffectToFile() declare the third
argument as
LPCDIFILEEFFECT rgDiFileEft:
https://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.idirectinputdevice8.idirectinputdevice8.writeeffecttofile%28v=vs.85%29.aspx
This is inconsistent with Microsoft's "dinput.h" file, they declare it as
LPDIFILEEFFECT (thus, no "const"):
ftp://sccn.ucsd.edu/pub/LSL/lsl-dependencies/external_libs/EmbarcaderoXE/shared/4.4.0-msvc/include/dinput.h
Wine's "dinput.h" follows the same mistake as Microsoft's:
https://github.com/wine-mirror/wine/blob/master/include/dinput.h#L1866

Is there a particular reason for this?

Best regards,
Elias



More information about the wine-devel mailing list