Blame src/object/ntapi_tt_sid.c

e7235f
/********************************************************/
e7235f
/*  ntapi: Native API core library                      */
e7235f
/*  Copyright (C) 2013--2017  Z. Gilboa                 */
e7235f
/*  Released under GPLv2 and GPLv3; see COPYING.NTAPI.  */
e7235f
/********************************************************/
e7235f
e7235f
#include <psxtypes/psxtypes.h>
e7235f
#include <ntapi/nt_object.h>
e7235f
#include "ntapi_impl.h"
e7235f
e7235f
void __stdcall __ntapi_tt_sid_copy(
e7235f
	__out	nt_sid *	dst,
e7235f
	__in	const nt_sid *	src)
e7235f
{
e7235f
	int i;
e7235f
e7235f
	dst->revision             = src->revision;
e7235f
	dst->sub_authority_count  = src->sub_authority_count;
e7235f
	dst->identifier_authority = src->identifier_authority;
e7235f
e7235f
	for (i=0; i<src->sub_authority_count; i++)
e7235f
		dst->sub_authority[i] = src->sub_authority[i];
e7235f
}