Add bounds checking for D3D9 adapter number #29

Merged
Dniel97 merged 1 commits from Bottersnike/segatools:fix/adapter_range into develop 2024-08-19 13:55:00 +00:00
Contributor

Currently, an invalid [gfx] monitor=... value will crash. This patch applies bounds checking.

As adapter is an unsigned integer, gfx_config.monitor being negative will still cause it to be larger than max_adaptor and hit the bounds check.

Currently, an invalid `[gfx] monitor=...` value will crash. This patch applies bounds checking. As `adapter` is an unsigned integer, `gfx_config.monitor` being negative will still cause it to be larger than `max_adaptor` and hit the bounds check.
Bottersnike added 1 commit 2024-08-17 20:20:49 +00:00
Owner

Thanks for the PR! That is a nice quality of life improvmenet and will be merged!

Thanks for the PR! That is a nice quality of life improvmenet and will be merged!
Dniel97 merged commit 6a4cae1165 into develop 2024-08-19 13:55:00 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Dniel97/segatools#29
No description provided.