quartz: Ensure pSample is NULL before calling IAsyncReader_WaitForNext
Bruno Jesus
00cpxxx at gmail.com
Fri Sep 4 11:25:43 CDT 2015
This is already done in 2 of 3 places, if WaitForNext fails pSample
could be left uninitialized.
-------------- next part --------------
diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c
index 8377be5..52a3970 100644
--- a/dlls/quartz/pin.c
+++ b/dlls/quartz/pin.c
@@ -415,6 +415,7 @@ static void PullPin_Flush(PullPin *This)
{
DWORD_PTR dwUser;
+ pSample = NULL;
IAsyncReader_WaitForNext(This->pReader, 0, &pSample, &dwUser);
if (!pSample)
More information about the wine-patches
mailing list