ntdll: If ObjectAttributes is NULL then an error is returned at the
start of the NtOpenSymbolicLinkObject, therefore ObjectAttributes does not need to be checked for NULL later on in the function.
This commit is contained in:
parent
1437f8bd8c
commit
e4b51580e1
|
@ -506,8 +506,8 @@ NTSTATUS WINAPI NtOpenSymbolicLinkObject(OUT PHANDLE LinkHandle, IN ACCESS_MASK
|
|||
SERVER_START_REQ(open_symlink)
|
||||
{
|
||||
req->access = DesiredAccess;
|
||||
req->attributes = ObjectAttributes ? ObjectAttributes->Attributes : 0;
|
||||
req->rootdir = ObjectAttributes ? ObjectAttributes->RootDirectory : 0;
|
||||
req->attributes = ObjectAttributes->Attributes;
|
||||
req->rootdir = ObjectAttributes->RootDirectory;
|
||||
if (ObjectAttributes->ObjectName)
|
||||
wine_server_add_data(req, ObjectAttributes->ObjectName->Buffer,
|
||||
ObjectAttributes->ObjectName->Length);
|
||||
|
|
Loading…
Reference in New Issue