Stefan Dösinger : wined3d: Fix a contradicting comment .

Alexandre Julliard julliard at winehq.org
Thu Oct 1 09:48:19 CDT 2009


Module: wine
Branch: master
Commit: 0c70291c2c818cf15e0b8f60fc9178faebf64702
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0c70291c2c818cf15e0b8f60fc9178faebf64702

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu Sep 10 23:23:37 2009 +0200

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.

---

 dlls/d3d9/tests/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d9/tests/surface.c b/dlls/d3d9/tests/surface.c
index 638442e..69c85f0 100644
--- a/dlls/d3d9/tests/surface.c
+++ b/dlls/d3d9/tests/surface.c
@@ -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);




More information about the wine-cvs mailing list