Commit 6b86019a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9: Translate E_INVALIDARG to D3DERR_INVALIDCALL in d3d9_surface_LockRect().

parent 471715b9
......@@ -258,6 +258,8 @@ static HRESULT WINAPI d3d9_surface_LockRect(IDirect3DSurface9 *iface,
locked_rect->pBits = map_desc.data;
}
if (hr == E_INVALIDARG)
return D3DERR_INVALIDCALL;
return hr;
}
......
......@@ -12103,7 +12103,6 @@ static void test_lockable_backbuffer(void)
ok(SUCCEEDED(hr), "Failed to get backbuffer, hr %#x.\n", hr);
hr = IDirect3DSurface9_LockRect(surface, &lockrect, NULL, D3DLOCK_DISCARD);
todo_wine
ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#x.\n", hr);
dc = (void *)0xdeadbeef;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment