How about this?
if (IsEqualGUID(clsid, &CLSID_CDirect3DRMTexture))
{
������������������ struct d3drm_texture *texture;
������������������ if (FAILED(hr = d3drm_texture_create(&texture))
������������������ {
������������������������������������������ *out = NULL;
������������������������������������������ return hr;
������������������ }
������������������ object = texture->IDirect3DRMTexture3_iface;
}
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.