[PATCH 1/2] ddraw/tests: Add some IDirect3DViewport interface tests (try 2)
Henri Verbeet
hverbeet at gmail.com
Thu Feb 2 08:02:27 CST 2012
On 2 February 2012 14:57, Stefan Dösinger <stefan at codeweavers.com> wrote:
> +static ULONG get_refcount(IUnknown *test_iface)
> +{
> + IUnknown_AddRef(test_iface);
> + return IUnknown_Release(test_iface);
> +}
...
> + LONG ref;
...
> + ref = get_refcount((IUnknown *)d3d);
> + ok(ref == 2, "IDirect3D refcount is %d\n", ref);
Well yeah, get_refcount() returns ULONG now, but you should fix the
type of "ref" and the format strings as well.
More information about the wine-devel
mailing list