Nikolay Sivov : ntdll: Remove redundant NULL check (Coverity).
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 8 10:09:20 CST 2016
Module: wine
Branch: master
Commit: ce093a2acf18ae7bb9f391f7689b2f9399791dee
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce093a2acf18ae7bb9f391f7689b2f9399791dee
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat Feb 6 03:02:06 2016 +0300
ntdll: Remove redundant NULL check (Coverity).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c
index c88221e..e87e672 100644
--- a/dlls/ntdll/sync.c
+++ b/dlls/ntdll/sync.c
@@ -806,7 +806,7 @@ NTSTATUS WINAPI NtOpenTimer( HANDLE *handle, ACCESS_MASK access, const OBJECT_AT
{
req->access = access;
req->attributes = attr->Attributes;
- req->rootdir = wine_server_obj_handle( attr ? attr->RootDirectory : 0 );
+ req->rootdir = wine_server_obj_handle( attr->RootDirectory );
if (attr->ObjectName)
wine_server_add_data( req, attr->ObjectName->Buffer, attr->ObjectName->Length );
status = wine_server_call( req );
More information about the wine-cvs
mailing list