Commit a512b9ab authored by Chris Robinson's avatar Chris Robinson Committed by Alexandre Julliard

quartz: Don't use uninitialized memory in ACMWrapper.

parent 78e0f23b
......@@ -91,7 +91,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
This->current_size += copy_size;
offset += copy_size;
if (offset == size)
if (offset >= size)
stop = TRUE;
if (This->current_size < This->max_size)
break;
......@@ -256,8 +256,8 @@ HRESULT ACMWrapper_create(IUnknown * pUnkOuter, LPVOID * ppv)
/* Note: This memory is managed by the transform filter once created */
This = CoTaskMemAlloc(sizeof(ACMWrapperImpl));
ZeroMemory(This, sizeof(ACMWrapperImpl));
This->has = 0;
This->reinit_codec = TRUE;
hr = TransformFilter_Create(&(This->tf), &CLSID_ACMWrapper, &ACMWrapper_FuncsTable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment