jp7677 / dxvk-nvapi

Alternative NVAPI implementation on top of DXVK.
MIT License
353 stars 32 forks source link

nvapi-gpu: Validate version before accessing struct fields #153

Closed ishitatsuyuki closed 5 months ago

ishitatsuyuki commented 5 months ago

The version needs to be checked before accessing any fields from the struct.

The tests for incompatible struct versions left the pOSAdapterId uninitialized, which caused flakes on MSVC. This fixes it.

jp7677 commented 5 months ago

Cool, thanks a lot!