Michael Stefaniuc : ntdll: Remove a redundant NULL check before RtlFreeHeap().
Alexandre Julliard
julliard at winehq.org
Fri Jul 8 10:02:05 CDT 2016
Module: wine
Branch: master
Commit: 7c8832b23a1bd193cdf645bcbb0519fd51be3c70
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7c8832b23a1bd193cdf645bcbb0519fd51be3c70
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Fri Jul 8 10:18:07 2016 +0200
ntdll: Remove a redundant NULL check before RtlFreeHeap().
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
More information about the wine-cvs
mailing list