Commit 59a43c4c authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

wined3d: Fix memcpy with wrong size parameter to simple assignment in GetScissorRect.

parent 58913b43
......@@ -3180,7 +3180,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetScissorRect(IWineD3DDevice *iface, C
static HRESULT WINAPI IWineD3DDeviceImpl_GetScissorRect(IWineD3DDevice *iface, RECT* pRect) {
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
memcpy(pRect, &This->updateStateBlock->scissorRect, sizeof(pRect));
*pRect = This->updateStateBlock->scissorRect;
TRACE("(%p)Returning a Scissor Rect of %d:%d-%d:%d\n", This, pRect->left, pRect->top, pRect->right, pRect->bottom);
return WINED3D_OK;
}
......
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