d3d9: Remove the double unlock test.
authorStefan Dösinger <stefan@codeweavers.com>
Mon, 15 Mar 2010 12:42:57 +0000 (13:42 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 17 Mar 2010 15:09:16 +0000 (16:09 +0100)
dlls/d3d9/tests/surface.c

index 4427cc0b7655f1e0ded3a8d2468d171cf7494630..967c6086fed222c714187f25f97ddd3ea1f28681 100644 (file)
@@ -169,8 +169,9 @@ static void test_surface_alignment(IDirect3DDevice9 *device_ptr)
             ok(SUCCEEDED(hr), "IDirect3DTexture9_LockRect: %08x\n", hr);
             hr = IDirect3DTexture9_UnlockRect(pTexture, j);
             ok(SUCCEEDED(hr), "IDirect3DTexture9_UnLockRect: %08x\n", hr);
-            hr = IDirect3DTexture9_UnlockRect(pTexture, j);
-todo_wine   ok(SUCCEEDED(hr), "Double IDirect3DTexture9_UnLockRect failed with %08x\n", hr);
+            /* Windows XP returns D3D_OK when calling UnlockRect on an unlocked surface,
+             * windows 7 returns an error.
+             */
 
             pitch = ((descr.Width + 3) >> 2) << 3;
             if (i > 0) pitch <<= 1;