diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index 699676a2a07..6180325fb4e 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -1733,7 +1733,7 @@ static void fill_surface(IDirect3DSurface9 *surface, DWORD color) memset(&l, 0, sizeof(l)); hr = IDirect3DSurface9_GetDesc(surface, &desc); ok(hr == D3D_OK, "IDirect3DSurface9_GetDesc failed with %s\n", DXGetErrorString9(hr)); - hr = IDirect3DSurface9_LockRect(surface, &l, NULL, D3DLOCK_DISCARD); + hr = IDirect3DSurface9_LockRect(surface, &l, NULL, 0); ok(hr == D3D_OK, "IDirect3DSurface9_LockRect failed with %s\n", DXGetErrorString9(hr)); if(FAILED(hr)) return;