Commit 2e26c176 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

ddraw: Pass the NULL rectangle to IDirectDrawSurface::Unlock.

parent c1503a25
...@@ -175,7 +175,7 @@ static DWORD getPixelColor(IDirect3DDevice7 *device, UINT x, UINT y) ...@@ -175,7 +175,7 @@ static DWORD getPixelColor(IDirect3DDevice7 *device, UINT x, UINT y)
* really important for these tests * really important for these tests
*/ */
ret = ((DWORD *) ddsd.lpSurface)[0] & 0x00ffffff; ret = ((DWORD *) ddsd.lpSurface)[0] & 0x00ffffff;
hr = IDirectDrawSurface7_Unlock(surf, &rectToLock); hr = IDirectDrawSurface7_Unlock(surf, NULL);
if(FAILED(hr)) if(FAILED(hr))
{ {
trace("Can't unlock the offscreen surface, hr=%08x\n", hr); trace("Can't unlock the offscreen surface, hr=%08x\n", hr);
...@@ -971,7 +971,7 @@ static DWORD D3D1_getPixelColor(IDirectDraw *DirectDraw1, IDirectDrawSurface *Su ...@@ -971,7 +971,7 @@ static DWORD D3D1_getPixelColor(IDirectDraw *DirectDraw1, IDirectDrawSurface *Su
* really important for these tests * really important for these tests
*/ */
ret = ((DWORD *) ddsd.lpSurface)[0] & 0x00ffffff; ret = ((DWORD *) ddsd.lpSurface)[0] & 0x00ffffff;
hr = IDirectDrawSurface_Unlock(surf, &rectToLock); hr = IDirectDrawSurface_Unlock(surf, NULL);
if(FAILED(hr)) if(FAILED(hr))
{ {
trace("Can't unlock the offscreen surface, hr=%08x\n", hr); trace("Can't unlock the offscreen surface, hr=%08x\n", hr);
......
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