Author: tkreuzer
Date: Sun Jul 31 19:26:11 2011
New Revision: 53008

URL: http://svn.reactos.org/svn/reactos?rev=53008&view=rev
Log:
[NTOSKRNL]
Fix OBTRACE definition.
the macro used __VA_ARGS__ and passes that to DPRINT(fmt, ...)
The preprocessor interpretes all arguments of __VA_ARGS__ as one token. This 
token was now passed as the first parameter of DPRINT1. This caused wrong 
parameters being used, resulting in a crash.

Modified:
    trunk/reactos/ntoskrnl/include/internal/ob.h

Modified: trunk/reactos/ntoskrnl/include/internal/ob.h
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/ob.h?rev=53008&r1=53007&r2=53008&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ob.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/ob.h [iso-8859-1] Sun Jul 31 
19:26:11 2011
@@ -31,7 +31,7 @@
     if (x & ObpTraceLevel) DbgPrint(__VA_ARGS__)
 #endif
 #else
-#define OBTRACE(x, ...) DPRINT(__VA_ARGS__)
+#define OBTRACE(x, fmt, ...) DPRINT(fmt, ##__VA_ARGS__)
 #endif
 
 //


Reply via email to