[PATCH] ntdll: Remove redundant NULL check (Coverity)
Nikolay Sivov
nsivov at codeweavers.com
Fri Feb 5 18:02:06 CST 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
validate_open_object_attributes() already covers this
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 );
--
2.7.0
More information about the wine-patches
mailing list