From 4b62257b144e9c1f231a0d3853778cd8ec5e49f3 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 13 Jun 2011 15:23:14 -0500 Subject: [PATCH] winecoreaudio.drv: Initialize audio description flags. --- dlls/winecoreaudio.drv/mmdevdrv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winecoreaudio.drv/mmdevdrv.c b/dlls/winecoreaudio.drv/mmdevdrv.c index d32e62a91e2..26c9286e648 100644 --- a/dlls/winecoreaudio.drv/mmdevdrv.c +++ b/dlls/winecoreaudio.drv/mmdevdrv.c @@ -604,6 +604,8 @@ static HRESULT ca_get_audiodesc(AudioStreamBasicDescription *desc, { const WAVEFORMATEXTENSIBLE *fmtex = (const WAVEFORMATEXTENSIBLE *)fmt; + desc->mFormatFlags = 0; + if(fmt->wFormatTag == WAVE_FORMAT_PCM || (fmt->wFormatTag == WAVE_FORMAT_EXTENSIBLE && IsEqualGUID(&fmtex->SubFormat, &KSDATAFORMAT_SUBTYPE_PCM))){ -- 2.11.4.GIT