Module: wine Branch: master Commit: 6ef74bc9c885b0ef053b7c060bf79b4f539a3b3b URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ef74bc9c885b0ef053b7c060b...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Fri Feb 2 17:47:54 2007 +0000
quartz: Fix a typo.
Should fix Coverity CID-348 (dereference before NULL check).
---
dlls/quartz/pin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c index 9336022..5bc84bf 100644 --- a/dlls/quartz/pin.c +++ b/dlls/quartz/pin.c @@ -338,7 +338,7 @@ HRESULT WINAPI IPinImpl_QueryId(IPin * i 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);