jp7677 / dxvk-nvapi

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

nvapi: Add argument checks and a few things found on the road #179

Closed jp7677 closed 1 month ago

jp7677 commented 1 month ago

Also omit nullptr checks for handles.

This one is probably a bit tricky ...

jp7677 commented 1 month ago

What about NvAPI_D3D_SetSleepMode and NvAPI_D3D_GetSleepStatus? We unsafely dereference second parameter of each function. Not sure if there's anything else in that area but at least these two functions come to mind.

Thanks, missed those two and also NvAPI_D3D_GetLatency. It's (forced) pushed.