Stefan Dösinger : ddraw: Pass the NULL rectangle to IDirectDrawSurface::Unlock.
Alexandre Julliard
julliard at winehq.org
Wed Apr 2 16:36:28 CDT 2008
Module: wine
Branch: master
Commit: 2e26c176ec61a25856a0a426074a667c803bf87c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e26c176ec61a25856a0a426074a667c803bf87c
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Sat Mar 29 22:47:26 2008 +0100
ddraw: Pass the NULL rectangle to IDirectDrawSurface::Unlock.
---
dlls/ddraw/tests/visual.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ddraw/tests/visual.c b/dlls/ddraw/tests/visual.c
index 08852d4..dc4ff47 100644
--- a/dlls/ddraw/tests/visual.c
+++ b/dlls/ddraw/tests/visual.c
@@ -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);
More information about the wine-cvs
mailing list