server: Add missing check for objattr variable in load_registry wineserver call (Coverity).
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
28afe7fc04
commit
a52a117f80
|
@ -2187,6 +2187,8 @@ DECL_HANDLER(load_registry)
|
|||
const struct security_descriptor *sd;
|
||||
const struct object_attributes *objattr = get_req_object_attributes( &sd, &name );
|
||||
|
||||
if (!objattr) return;
|
||||
|
||||
if (!thread_single_check_privilege( current, &SeRestorePrivilege ))
|
||||
{
|
||||
set_error( STATUS_PRIVILEGE_NOT_HELD );
|
||||
|
|
Loading…
Reference in New Issue