https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3ec3e1a7f6e810b10862f…
commit 3ec3e1a7f6e810b10862ffc329795217a04f4aec
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Fri Dec 4 15:44:11 2020 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Fri Dec 4 15:49:39 2020 +0100
[BTRFS] Fix wrong condition check
---
drivers/filesystems/btrfs/security.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/filesystems/btrfs/security.c b/drivers/filesystems/btrfs/security.c
index 7f429e27274..f6769d05606 100644
--- a/drivers/filesystems/btrfs/security.c
+++ b/drivers/filesystems/btrfs/security.c
@@ -180,7 +180,7 @@ void add_group_mapping(WCHAR* sidstring, ULONG sidstringlength,
uint32_t gid) {
while (sidstringlength > 0) {
val = 0;
i = 0;
- while (sidstring[i] != '-' && i < sidstringlength) {
+ while (i < sidstringlength && sidstring[i] != '-') {
if (sidstring[i] >= '0' && sidstring[i] <= '9')
{
val *= 10;
val += sidstring[i] - '0';