Thomas Faller : amstream: Fix use of uninitialized memory.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 8 09:20:59 CDT 2015


Module: wine
Branch: master
Commit: 2fb791b0ebcdfbbebc20afb1dd1205d793617d1f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2fb791b0ebcdfbbebc20afb1dd1205d793617d1f

Author: Thomas Faller <tfaller1 at gmx.de>
Date:   Mon Sep 28 18:16:57 2015 +0200

amstream: Fix use of uninitialized memory.

---

 dlls/amstream/mediastream.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/amstream/mediastream.c b/dlls/amstream/mediastream.c
index 947be1e..79f9822 100644
--- a/dlls/amstream/mediastream.c
+++ b/dlls/amstream/mediastream.c
@@ -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);




More information about the wine-cvs mailing list