From e6e5ab69361d7687df456db65ec057be79934bfa Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 21 Jan 2013 13:53:03 +0000 Subject: [PATCH] Use same fix to silence newer gcc as in 64 bit branch --- winsup/cygwin/advapi32.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/advapi32.cc b/winsup/cygwin/advapi32.cc index cc961901b..3cf8aea11 100644 --- a/winsup/cygwin/advapi32.cc +++ b/winsup/cygwin/advapi32.cc @@ -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