Alistair Leslie-Hughes : ntdll: RtlFirstFreeAce only return FALSE on error.
Alexandre Julliard
julliard at winehq.org
Tue Jul 19 15:55:02 CDT 2022
Module: wine
Branch: master
Commit: 0cc26c121831be32bb20092398668f4dfd732327
URL: https://gitlab.winehq.org/wine/wine/-/commit/0cc26c121831be32bb20092398668f4dfd732327
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Mon Feb 8 13:16:52 2021 +1100
ntdll: RtlFirstFreeAce only return FALSE on error.
---
dlls/ntdll/sec.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c
index ba8d7b71593..20adc044158 100644
--- a/dlls/ntdll/sec.c
+++ b/dlls/ntdll/sec.c
@@ -1149,9 +1149,8 @@ BOOLEAN WINAPI RtlFirstFreeAce(
return FALSE;
ace = (PACE_HEADER)(((BYTE*)ace)+ace->AceSize);
}
- if ((BYTE *)ace >= (BYTE *)acl + acl->AclSize)
- return FALSE;
- *x = ace;
+ if ((BYTE *)ace <= (BYTE *)acl + acl->AclSize)
+ *x = ace;
return TRUE;
}
More information about the wine-cvs
mailing list