msxml3/tests: Remove redundant NULL check before SysFreeString (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Wed Sep 24 16:04:34 CDT 2008
---
dlls/msxml3/tests/domdoc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index c927274..29bebb9 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -1565,8 +1565,7 @@ static void test_getElementsByTagName(void)
r = IDispatchEx_GetMemberName(dispex, dispid, &sName);
ok(r == E_NOTIMPL, "expected E_NOTIMPL got %08x\n", r);
- if(sName)
- SysFreeString(sName);
+ SysFreeString(sName);
r = IDispatchEx_GetNextDispID(dispex, fdexEnumDefault, DISPID_XMLDOM_NODELIST_RESET, &dispid);
ok(r == E_NOTIMPL, "expected E_NOTIMPL got %08x\n", r);
--
1.6.0.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080924/1906db2a/attachment.pgp
More information about the wine-patches
mailing list