amstream: Fix use of uninitialized memory.

This commit is contained in:
Thomas Faller 2015-09-28 18:16:57 +02:00 committed by Alexandre Julliard
parent e7fc477921
commit 2fb791b0eb
1 changed files with 1 additions and 0 deletions

View File

@ -1003,6 +1003,7 @@ static HRESULT ddrawstreamsample_create(IDirectDrawMediaStream *parent, IDirectD
desc.ddpfPixelFormat.dwBBitMask = 0x0000ff;
desc.ddpfPixelFormat.dwRGBAlphaBitMask = 0;
desc.ddsCaps.dwCaps = DDSCAPS_SYSTEMMEMORY|DDSCAPS_OFFSCREENPLAIN;
desc.lpSurface = NULL;
hr = IDirectDraw_CreateSurface(ddraw, &desc, &object->surface, NULL);
IDirectDraw_Release(ddraw);