[BTRFS] Fix wrong condition check

This commit is contained in:
Jérôme Gardou 2020-12-04 15:44:11 +01:00
parent 19779b3f96
commit 3ec3e1a7f6

View file

@ -180,7 +180,7 @@ void add_group_mapping(WCHAR* sidstring, ULONG sidstringlength, uint32_t gid) {
while (sidstringlength > 0) { while (sidstringlength > 0) {
val = 0; val = 0;
i = 0; i = 0;
while (sidstring[i] != '-' && i < sidstringlength) { while (i < sidstringlength && sidstring[i] != '-') {
if (sidstring[i] >= '0' && sidstring[i] <= '9') { if (sidstring[i] >= '0' && sidstring[i] <= '9') {
val *= 10; val *= 10;
val += sidstring[i] - '0'; val += sidstring[i] - '0';