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

This commit is contained in:
Stefan Dösinger 2008-03-29 22:47:26 +01:00 committed by Alexandre Julliard
parent c1503a2579
commit 2e26c176ec
1 changed files with 2 additions and 2 deletions

View File

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