[PATCH 02/10] d3d9: avoid using a wined3d_surface in get_desc calls inside d3d9_device_StretchRect

Henri Verbeet hverbeet at gmail.com
Tue Oct 20 10:35:56 CDT 2015


On 20 October 2015 at 16:48, Riccardo Bortolato <rikyz619 at gmail.com> wrote:
> Alright, I will remove the checks even I thought we were checking this
> everytime we call it regardless it can fail or not (plus it seems
> somehow harmless to me).
>
It's mostly harmless, though if it ever did fail for some reason, it
would be better to crash than to return a failure to the application.
We check the return if the index comes from outside the dll, we don't
if it's known to be valid.



More information about the wine-devel mailing list