Skip to content

Commit 6b279b8

Browse files
authored
patterns/exfat: Fixed eval depth error
1 parent a692b22 commit 6b279b8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

patterns/exfat.hexpat

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import std.mem;
66
import std.string;
77
import std.core;
88

9+
#pragma eval_depth 0
10+
911
struct BootSector {
1012
std::mem::Bytes<3> jumpBoot;
1113
char fileSystemName[8];
@@ -243,11 +245,7 @@ struct DirectoryEntryChain {
243245
)] @ startingFatRange [[hidden]];
244246
clusterSize = std::core::member_count(clusters);
245247
}
246-
try {
247-
ContinuousDirectoryEntry<clusterIndex, clusterSize> data @ 0;
248-
} catch {
249-
std::warning(std::format("Error trying to parse ContinuousDirectoryEntry at {:#x} (Cluster index {} with cluster size of {})", startOfClusterHeap + clusterIndex * bytesPerCluster, clusterIndex, clusterSize));
250-
}
248+
ContinuousDirectoryEntry<clusterIndex, clusterSize> data @ 0;
251249
try {
252250
auto nextClusterIndex = clusters[clusterSize - 1];
253251
if (nextClusterIndex != 0xffffffff && nextClusterIndex != 0) {

0 commit comments

Comments
 (0)