[PATCH 7/7] mfplat: Prevent use after free (Coverity)
Fabian Maurer
dark.shadow4 at web.de
Sat Apr 23 13:17:29 CDT 2022
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
dlls/mfplat/mediatype.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/mfplat/mediatype.c b/dlls/mfplat/mediatype.c
index 71d55e2d232..a05fec9ad43 100644
--- a/dlls/mfplat/mediatype.c
+++ b/dlls/mfplat/mediatype.c
@@ -1380,6 +1380,7 @@ static const WAVEFORMATEX * WINAPI audio_mediatype_GetAudioFormat(IMFAudioMediaT
&size, MFWaveFormatExConvertFlag_Normal)))
{
WARN("Failed to create wave format description, hr %#lx.\n", hr);
+ media_type->audio_format = 0;
}
return media_type->audio_format;
--
2.36.0
More information about the wine-devel
mailing list