forked from Mirrors/wine-wine
quartz: Don't write past end of d3d9 buffer.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
f870708c66
commit
ac59a68162
|
@ -260,9 +260,9 @@ static DWORD VMR9_SendSampleData(struct quartz_vmr *This, VMR9PresentationInfo *
|
|||
lock.pBits = (char *)lock.pBits + (height * lock.Pitch);
|
||||
while (height--)
|
||||
{
|
||||
lock.pBits = (char *)lock.pBits - lock.Pitch;
|
||||
memcpy(lock.pBits, data, width * bmiHeader->biBitCount / 8);
|
||||
data = data + width * bmiHeader->biBitCount / 8;
|
||||
lock.pBits = (char *)lock.pBits - lock.Pitch;
|
||||
}
|
||||
}
|
||||
else if (lock.Pitch != width * bmiHeader->biBitCount / 8)
|
||||
|
|
Loading…
Reference in New Issue