Re: [3/5] strmbase: Add validation checks when updating destination rectangle.
21 Nov
2016
21 Nov
'16
4:01 p.m.
On Sun, Nov 20, 2016 at 03:33:24PM +0900, Akihiro Sagawa wrote:
@@ -409,13 +438,19 @@ HRESULT WINAPI BaseControlVideoImpl_put_DestinationHeight(IBasicVideo *iface, LO { RECT DestRect; BaseControlVideo *This = impl_from_IBasicVideo(iface); + HRESULT hr;
TRACE("(%p/%p)->(%d)\n", This, iface, DestinationHeight); - This->pFuncsTable->pfnGetTargetRect(This, &DestRect); - DestRect.right = DestRect.left + DestinationHeight; - This->pFuncsTable->pfnSetTargetRect(This, &DestRect); + hr = This->pFuncsTable->pfnGetTargetRect(This, &DestRect); + if (SUCCEEDED(hr)) + { + DestRect.right = DestRect.left + DestinationHeight;
You've got a copy-paste error here, unfortunately. Andrew
3398
Age (days ago)
3398
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andrew Eikum