From 53104ac1e791a0082a8b251971acd1c925869b59 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 23 Oct 2009 10:26:11 +0200 Subject: [PATCH] wined3d: Don't use the stack as cursor mask (Valgrind). --- dlls/wined3d/device.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ec56980012..83f537cf45 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -6376,12 +6376,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetCursorProperties(IWineD3DDevice* i cursorInfo.fIcon = FALSE; cursorInfo.xHotspot = XHotSpot; cursorInfo.yHotspot = YHotSpot; - cursorInfo.hbmMask = CreateBitmap(pSur->currentDesc.Width, - pSur->currentDesc.Height, 1, - 1, &maskBits); - cursorInfo.hbmColor = CreateBitmap(pSur->currentDesc.Width, - pSur->currentDesc.Height, 1, - 32, lockedRect.pBits); + cursorInfo.hbmMask = CreateBitmap(pSur->currentDesc.Width, pSur->currentDesc.Height, + 1, 1, maskBits); + cursorInfo.hbmColor = CreateBitmap(pSur->currentDesc.Width, pSur->currentDesc.Height, + 1, 32, lockedRect.pBits); IWineD3DSurface_UnlockRect(pCursorBitmap); /* Create our cursor and clean up. */ cursor = CreateIconIndirect(&cursorInfo); -- 2.33.8