Use same fix to silence newer gcc as in 64 bit branch

This commit is contained in:
Corinna Vinschen 2013-01-21 13:53:03 +00:00
parent 6d34849474
commit e6e5ab6936
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ DuplicateTokenEx (HANDLE tok, DWORD access, LPSECURITY_ATTRIBUTES sec_attr,
{ sizeof sqos, level, SECURITY_STATIC_TRACKING, FALSE };
OBJECT_ATTRIBUTES attr =
{ sizeof attr, NULL, NULL,
(ULONG) ((sec_attr && sec_attr->bInheritHandle) ? OBJ_INHERIT : 0),
(sec_attr && sec_attr->bInheritHandle) ? OBJ_INHERIT : 0U,
(sec_attr ? sec_attr->lpSecurityDescriptor : NULL), &sqos };
NTSTATUS status = NtDuplicateToken (tok, access, &attr, FALSE, type, new_tok);
DEFAULT_NTSTATUS_TO_BOOL_RETURN