[PATCH 1/2] d3drm: Move struct d3drm_texture to header for global access.

Józef Kucia joseph.kucia at gmail.com
Sun Mar 20 15:04:38 CDT 2016


On Sun, Mar 20, 2016 at 7:24 PM, Aaryaman Vasishta
<jem456.vasishta at gmail.com> wrote:
>                                  CloseHandle(file);
> -
> -                                hr = Direct3DRMTexture_create(&IID_IDirect3DRMTexture3, (IUnknown**)&This->materials[i].texture);
> +                                struct d3drm_texture *texture_object;
> +                                hr = d3drm_texture_create(&texture_object);
>                                  if (FAILED(hr))

Put the "texture_object" declaration at the beginning of the block or
the function. Mixed declarations and code is C99 feature and is not
allowed in Wine. Also, "if (FAILED(hr =
d3drm_texture_create(&texture_object)))" would be preferred.



More information about the wine-devel mailing list