summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/flock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/flock.cc')
-rw-r--r--winsup/cygwin/flock.cc5
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;