summaryrefslogtreecommitdiff
path: root/src/envfs.cpp
diff options
context:
space:
mode:
authorAl <26797547+Al12rs@users.noreply.github.com>2020-09-27 00:54:06 +0200
committerGitHub <noreply@github.com>2020-09-27 00:54:06 +0200
commit7f4e83ea1119b8465a4a56a77106f50bae146aed (patch)
treea028912dbbe79d23267e46db4338f083c48f6bd9 /src/envfs.cpp
parent8e43dee79c86bf56deb98654439016205c470679 (diff)
TEST rem potential early return in forEachEntry()
Test to see if this fixes a bug on discord.
Diffstat (limited to 'src/envfs.cpp')
-rw-r--r--src/envfs.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/envfs.cpp b/src/envfs.cpp
index a8af967b..bdb11c65 100644
--- a/src/envfs.cpp
+++ b/src/envfs.cpp
@@ -315,11 +315,12 @@ void forEachEntryImpl(
break;
}
}
-
- if (AllocSize - iosb.Information > (ULONG)FIELD_OFFSET(FILE_DIRECTORY_INFORMATION, FileName[256])) {
- // NO_MORE_FILES
- break;
- }
+
+ // This might be returning early in some unknown cases! Testing
+ //if (AllocSize - iosb.Information > (ULONG)FIELD_OFFSET(FILE_DIRECTORY_INFORMATION, FileName[256])) {
+ // // NO_MORE_FILES
+ // break;
+ //}
}
}