mfplat: Always initialize output arguments in GetScanline0AndPitch() for d3d9 buffers.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
01059d5946
commit
ca52f07565
|
@ -689,7 +689,11 @@ static HRESULT WINAPI d3d9_surface_buffer_GetScanline0AndPitch(IMF2DBuffer2 *ifa
|
|||
EnterCriticalSection(&buffer->cs);
|
||||
|
||||
if (!buffer->_2d.locks)
|
||||
{
|
||||
*scanline0 = NULL;
|
||||
*pitch = 0;
|
||||
hr = HRESULT_FROM_WIN32(ERROR_WAS_UNLOCKED);
|
||||
}
|
||||
else
|
||||
{
|
||||
*scanline0 = buffer->d3d9_surface.rect.pBits;
|
||||
|
|
Loading…
Reference in New Issue