qcap: Fix a typo

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Jan 20 14:01:26 CST 2007


This should fix Coverity CID-348 (NULL check after dereference).

-- Andy.
---
Changelog:
    qcap: Fix a typo.

diff -urN a/dlls/qcap/pin.c b/dlls/qcap/pin.c
--- a/dlls/qcap/pin.c	2006-11-13 17:34:37.000000000 +0000
+++ b/dlls/qcap/pin.c	2007-01-20 19:37:35.000000000 +0000
@@ -132,7 +132,7 @@
     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);



More information about the wine-patches mailing list