From 6ef74bc9c885b0ef053b7c060bf79b4f539a3b3b Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Fri, 2 Feb 2007 17:47:54 +0000 Subject: [PATCH] quartz: Fix a typo. Should fix Coverity CID-348 (dereference before NULL check). --- dlls/quartz/pin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c index 9336022f247..5bc84bf6404 100644 --- a/dlls/quartz/pin.c +++ b/dlls/quartz/pin.c @@ -338,7 +338,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);