From 7f4e83ea1119b8465a4a56a77106f50bae146aed Mon Sep 17 00:00:00 2001 From: Al <26797547+Al12rs@users.noreply.github.com> Date: Sun, 27 Sep 2020 00:54:06 +0200 Subject: TEST rem potential early return in forEachEntry() Test to see if this fixes a bug on discord. --- src/envfs.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/envfs.cpp') 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; + //} } } -- cgit v1.3.1