From 7f582de62ce0b369166b1da34808f887ab048cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 22 Sep 2009 20:33:56 +0000 Subject: [PATCH] [freeldr] Never ever define a macro as multiple instructions. It may lead to subtle bugs svn path=/trunk/; revision=43117 --- reactos/boot/freeldr/freeldr/include/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/boot/freeldr/freeldr/include/debug.h b/reactos/boot/freeldr/freeldr/include/debug.h index b12ee4e3a7f..ffe778f92ff 100644 --- a/reactos/boot/freeldr/freeldr/include/debug.h +++ b/reactos/boot/freeldr/freeldr/include/debug.h @@ -47,7 +47,7 @@ extern int g_line; VOID DebugDumpBuffer(ULONG Mask, PVOID Buffer, ULONG Length); - #define DPRINTM g_file=__FILE__;g_line=__LINE__;DbgPrintMask + #define DPRINTM g_file=__FILE__, g_line=__LINE__, DbgPrintMask #define BugCheck(_x_) { DbgPrintMask(DPRINT_WARNING, "Fatal Error: %s:%d(%s)\n", __FILE__, __LINE__, __FUNCTION__); DbgPrintMask _x_ ; for (;;); } #define DbgDumpBuffer(_x_, _y_, _z_) DebugDumpBuffer(_x_, _y_, _z_)