quartz: Fix a typo.

Should fix Coverity CID-348 (dereference before NULL check).
This commit is contained in:
Andrew Talbot 2007-02-02 17:47:54 +00:00 committed by Alexandre Julliard
parent 2bb44198b6
commit 6ef74bc9c8
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ HRESULT WINAPI IPinImpl_QueryId(IPin * iface, LPWSTR * Id)
TRACE("(%p/%p)->(%p)\n", This, iface, Id); TRACE("(%p/%p)->(%p)\n", This, iface, Id);
*Id = CoTaskMemAlloc((strlenW(This->pinInfo.achName) + 1) * sizeof(WCHAR)); *Id = CoTaskMemAlloc((strlenW(This->pinInfo.achName) + 1) * sizeof(WCHAR));
if (!Id) if (!*Id)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
strcpyW(*Id, This->pinInfo.achName); strcpyW(*Id, This->pinInfo.achName);