Module: wine Branch: master Commit: 36e73d296b0174461b2f091988ff045701b0bb96 URL: http://source.winehq.org/git/wine.git/?a=commit;h=36e73d296b0174461b2f091988...
Author: James Hawkins jhawkins@codeweavers.com Date: Tue May 20 00:48:29 2008 -0500
ntdll: Remove NULL checks for attr, which has already been dereferenced.
---
dlls/ntdll/virtual.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index 812c9bd..5977300 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -1956,8 +1956,8 @@ NTSTATUS WINAPI NtOpenSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_ SERVER_START_REQ( open_mapping ) { req->access = access; - req->attributes = (attr) ? attr->Attributes : 0; - req->rootdir = attr ? attr->RootDirectory : 0; + req->attributes = attr->Attributes; + req->rootdir = attr->RootDirectory; wine_server_add_data( req, attr->ObjectName->Buffer, len ); if (!(ret = wine_server_call( req ))) *handle = reply->handle; }