diff --git a/dlls/qcap/pin.c b/dlls/qcap/pin.c index 7e579b6f64b..09c3c5d2032 100644 --- a/dlls/qcap/pin.c +++ b/dlls/qcap/pin.c @@ -132,7 +132,7 @@ HRESULT WINAPI IPinImpl_QueryId(IPin * iface, LPWSTR * Id) TRACE("(%p/%p)->(%p)\n", This, iface, Id); *Id = CoTaskMemAlloc((strlenW(This->pinInfo.achName) + 1) * sizeof(WCHAR)); - if (!Id) + if (!*Id) return E_OUTOFMEMORY; strcpyW(*Id, This->pinInfo.achName);