Commit ca52f075 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplat: Always initialize output arguments in GetScanline0AndPitch() for d3d9 buffers.

parent 01059d59
......@@ -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;
......
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