[2/5] server: A new function "set_sd_defaults_from_token" that sets the security descriptor along with a token that will be used to gather defaults, instead of always using the primary token.

Alexandre Julliard julliard at winehq.org
Tue Jul 8 12:08:48 CDT 2014


Joris van der Wel <joris at jorisvanderwel.com> writes:

> +/** Set the security descriptor using the current primary token for defaults. */
> +int default_set_sd( struct object *obj, const struct security_descriptor *sd,
> +                    unsigned int set_info )
> +{
> +    return set_sd_defaults_from_token( obj, sd, set_info, current ? current->process->token : NULL );

There shouldn't be any need to test the current pointer for null. If
it's needed, that probably indicates some other problem.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list