netapi32: Remove redundant NULL check before HeapFree(). Found by Smatch.
Michael Stefaniuc
mstefani at redhat.de
Sat Nov 17 12:15:22 CST 2007
---
dlls/netapi32/access.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/netapi32/access.c b/dlls/netapi32/access.c
index 15cd84c..dc9498b 100644
--- a/dlls/netapi32/access.c
+++ b/dlls/netapi32/access.c
@@ -178,10 +178,8 @@ NET_API_STATUS WINAPI NetUserAdd(LPCWSTR servername,
break;
}
- if(su)
- {
- HeapFree(GetProcessHeap(), 0, su);
- }
+ HeapFree(GetProcessHeap(), 0, su);
+
return status;
}
--
1.5.3.4
-------------- 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/20071117/6df72133/attachment.pgp
More information about the wine-patches
mailing list