Commit ac59a681 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

quartz: Don't write past end of d3d9 buffer.

parent f870708c
...@@ -260,9 +260,9 @@ static DWORD VMR9_SendSampleData(struct quartz_vmr *This, VMR9PresentationInfo * ...@@ -260,9 +260,9 @@ static DWORD VMR9_SendSampleData(struct quartz_vmr *This, VMR9PresentationInfo *
lock.pBits = (char *)lock.pBits + (height * lock.Pitch); lock.pBits = (char *)lock.pBits + (height * lock.Pitch);
while (height--) while (height--)
{ {
lock.pBits = (char *)lock.pBits - lock.Pitch;
memcpy(lock.pBits, data, width * bmiHeader->biBitCount / 8); memcpy(lock.pBits, data, width * bmiHeader->biBitCount / 8);
data = 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) else if (lock.Pitch != width * bmiHeader->biBitCount / 8)
......
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