quartz: Fix a typo
Andrew Talbot
Andrew.Talbot at talbotville.com
Fri Feb 2 11:47:54 CST 2007
Should fix Coverity CID-348 (dereference before NULL check).
---
Changelog:
quartz: Fix a typo.
diff -urN a/dlls/quartz/pin.c b/dlls/quartz/pin.c
--- a/dlls/quartz/pin.c 2006-11-13 17:34:37.000000000 +0000
+++ b/dlls/quartz/pin.c 2007-02-02 17:43:02.000000000 +0000
@@ -338,7 +338,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