https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3013e153b0e085de0abd2…
commit 3013e153b0e085de0abd2b2eeb83bdfaf6eded13
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Fri Nov 24 12:00:10 2017 +0100
[FASTFAT_NEW] Fix build with FASTFATDBG set
---
drivers/filesystems/fastfat_new/fatdata.h | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/drivers/filesystems/fastfat_new/fatdata.h
b/drivers/filesystems/fastfat_new/fatdata.h
index 18fb891aab..ad4d1fb812 100644
--- a/drivers/filesystems/fastfat_new/fatdata.h
+++ b/drivers/filesystems/fastfat_new/fatdata.h
@@ -234,6 +234,7 @@ extern LONG FatDebugTraceIndent;
} \
}
+#ifdef _MSC_VER
#define DebugDump(STR,LEVEL,PTR) { \
__pragma(warning(push)) \
__pragma(warning(disable:4210)) \
@@ -248,9 +249,22 @@ extern LONG FatDebugTraceIndent;
} \
__pragma(warning(pop)) \
}
+#else
+#define DebugDump(STR,LEVEL,PTR) { \
+ ULONG _i; \
+ VOID FatDump(IN PVOID Ptr); \
+ if (((LEVEL) == 0) || (FatDebugTraceLevel & (LEVEL))) { \
+ _i = (ULONG)PsGetCurrentThread(); \
+ DbgPrint("%08lx:",_i); \
+ DbgPrint(STR); \
+ if (PTR != NULL) {FatDump(PTR);} \
+ NT_ASSERT(FALSE); \
+ } \
+}
+#endif
#define DebugUnwind(X) { \
- if (AbnormalTermination()) { \
+ if (_SEH2_AbnormalTermination()) { \
DebugTrace(0, DEBUG_TRACE_UNWIND, #X ", Abnormal termination.\n", 0);
\
} \
}