[PATCH] wined3d: Remove a redundant adapter_count check (Coverity).

Sven Baars sven.wine at gmail.com
Thu Feb 21 14:26:20 CST 2019

On 21-02-19 21:00, Henri Verbeet wrote:
> On Wed, 20 Feb 2019 at 21:57, Sven Baars <sven.wine at gmail.com> wrote:
>> It is already tested that adapter_idx >= wined3d->adapter_count
>> before calling device_init, so adapter_count can never be zero.
> The patch is fine, but the condition in the commit message is wrong.
That's bad wording indeed. It is tested that adapter_idx >=
wined3d->adapter_count everywhere, but in that case the methods return.
I should have put it the other way round. Sorry for that.

More information about the wine-devel mailing list