<div dir="ltr">How about this?<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">if (IsEqualGUID(clsid, &CLSID_CDirect3DRMTexture))<br>{<br>    struct d3drm_texture *texture;<br>    if (FAILED(hr = d3drm_texture_create(&texture))<br>    {<br>        *out = NULL;<br>        return hr;<br>    }<br>    object = texture->IDirect3DRMTexture3_iface;<br>}<br></blockquote><div>What do you think? I'm not sure if declaring variables like that is allowed, but it has been used in similar cases elsewhere so I guess it should be fine.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 9:29 PM, Henri Verbeet <span dir="ltr"><<a href="mailto:hverbeet@gmail.com" target="_blank">hverbeet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 18 April 2016 at 17:45, Aaryaman Vasishta <<a href="mailto:jem456.vasishta@gmail.com">jem456.vasishta@gmail.com</a>> wrote:<br>
> I thought it'd be a good idea to keep it void * for once future objects<br>
> would be implemented (i.e. the one's that have todo marked as true in the<br>
> tests).<br>
</span>That can't work in a sane way. You need a specific type because you<br>
need to dereference the pointer to get at the interface. I.e., notice<br>
how you're casting "object_struct" in every place where you use it.<br>
</blockquote></div><br></div>