avengerx / LeadershipTwinTurboWheelFFBDriver

Force Feedback driver for Leadership Gamer Twin Turbo Steering Wheel (model 1021)
GNU General Public License v3.0
2 stars 0 forks source link

Ensure download method only fiddles with what the flags points it should #10

Open avengerx opened 1 year ago

avengerx commented 1 year ago

According to Microsoft Documentation on the DownloadEffect function, the dwFlags argument determines what's being fed by the downloaded effect. So that we can skip checking for null pointers, sizes, if the flag indicates a given variable of an effect is not to be updated or has been passed.

This should help return early with invalid params in case a required parameter flag is not passed, or simply return early if nothing is to be changed.