wined3d: Fix a contradicting comment.
The test was adopted from the ddraw test, where GetPrivateData does not addref. The test code was adjusted, the comment apparently not.
This commit is contained in:
parent
c749debec6
commit
0c70291c2c
|
@ -365,7 +365,7 @@ static void test_private_data(IDirect3DDevice9 *device)
|
|||
hr = IDirect3DSurface9_GetPrivateData(surface, &IID_IDirect3DSurface9, &ptr, &size);
|
||||
ok(hr == D3D_OK, "IDirect3DSurface9_GetPrivateData failed with %08x\n", hr);
|
||||
ref2 = getref((IUnknown *) device);
|
||||
/* Object is NOT being addrefed */
|
||||
/* Object is addrefed */
|
||||
ok(ptr == (IUnknown *) device, "Returned interface pointer is %p, expected %p\n", ptr, device);
|
||||
ok(ref2 == ref + 2, "Object reference is %d, expected %d. ptr at %p, orig at %p\n", ref2, ref + 2, ptr, device);
|
||||
IUnknown_Release(ptr);
|
||||
|
|
Loading…
Reference in New Issue