Commit 6753fdc3 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

server: Fix a typo in the enumeration of the ACE's in sd_to_mode.

This caused only the first ACE to be examined, causing permissions to always be set to ----???---.
parent bf2a35b7
......@@ -421,7 +421,7 @@ static mode_t sd_to_mode( const struct security_descriptor *sd, const SID *owner
{
const ACE_HEADER *ace = (const ACE_HEADER *)(dacl + 1);
ULONG i;
for (i = 0; i < dacl->AceCount; i++, ace_next( ace ))
for (i = 0; i < dacl->AceCount; i++, ace = ace_next( ace ))
{
const ACCESS_ALLOWED_ACE *aa_ace;
const ACCESS_DENIED_ACE *ad_ace;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment