Author: hpoussin
Date: Tue Sep 22 22:33:56 2009
New Revision: 43117
URL:
http://svn.reactos.org/svn/reactos?rev=43117&view=rev
Log:
[freeldr] Never ever define a macro as multiple instructions. It may lead to subtle bugs
Modified:
trunk/reactos/boot/freeldr/freeldr/include/debug.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/debug.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/inclu…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/include/debug.h [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/include/debug.h [iso-8859-1] Tue Sep 22 22:33:56
2009
@@ -47,7 +47,7 @@
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_)