diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-04-28 13:30:36 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-04-28 13:30:36 +0400 |
commit | 1754539e56dcde666394354ec603d5524b0d3e90 (patch) | |
tree | 23995f49c74ee39bf46a29d39bd1aa8ccc8e0e86 /winsup/cygwin/flock.cc | |
parent | 158e516b9dcb2993e5f062f2feeee5dbd4ee787a (diff) |
* advapi32.cc (InitializeAcl): Remove.
(AddAce): Remove.
(FindFirstFreeAce): Remove.
(GetAce): Remove.
(InitializeSecurityDescriptor): Remove.
(OpenProcessToken): Remove.
* dcrt0.cc: Replace above functions throughout with their ntdll.dll
equivalent.
* fhandler_tty.cc: Ditto.
* flock.cc: Ditto.
* pinfo.cc: Ditto. Drop unnecessary error handling.
* sec_acl.cc: Ditto.
* sec_auth.cc: Ditto.
* sec_helper.cc: Ditto.
* security.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/flock.cc')
-rw-r--r-- | winsup/cygwin/flock.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/flock.cc b/winsup/cygwin/flock.cc index c899361ff..16e2911a6 100644 --- a/winsup/cygwin/flock.cc +++ b/winsup/cygwin/flock.cc @@ -178,9 +178,10 @@ allow_others_to_sync () return; } /* Set the size of the DACL correctly. */ - if (!FindFirstFreeAce (dacl, &ace)) + status = RtlFirstFreeAce (dacl, &ace); + if (!NT_SUCCESS (status)) { - debug_printf ("FindFirstFreeAce: %lu", GetLastError ()); + debug_printf ("RtlFirstFreeAce: %p", status); return; } dacl->AclSize = (char *) ace - (char *) dacl; |