ntdll: Remove a redundant NULL check before RtlFreeHeap().
Michael Stefaniuc
mstefani at redhat.de
Fri Jul 8 03:18:07 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
dlls/ntdll/actctx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/actctx.c b/dlls/ntdll/actctx.c
index d26a5c4..323ee68 100644
--- a/dlls/ntdll/actctx.c
+++ b/dlls/ntdll/actctx.c
@@ -4585,7 +4585,7 @@ NTSTATUS WINAPI RtlCreateActivationContext( HANDLE *handle, const void *ptr )
}
ret = RtlDosPathNameToNtPathName_U(source ? source : pActCtx->lpSource, &nameW, NULL, NULL);
- if (source) RtlFreeHeap( GetProcessHeap(), 0, source );
+ RtlFreeHeap( GetProcessHeap(), 0, source );
if (!ret)
{
status = STATUS_NO_SUCH_FILE;
--
2.5.5
More information about the wine-patches
mailing list