- define msvc compabitble debug macro

- fix error in debug print

svn path=/trunk/; revision=25581
This commit is contained in:
Johannes Anderwald 2007-01-21 23:29:12 +00:00
parent 80513cb036
commit 3b4ec883fa

View file

@ -29,7 +29,8 @@
#ifdef NDEBUG
#if defined(__GNUC__)
#define TRACE_LDR(args...) if (RtlGetNtGlobalFlags() & FLG_SHOW_LDR_SNAPS) { DbgPrint("(LDR:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); }
#else
#elif defined(_MSC_VER)
#define TRACE_LDR(args, ...) if (RtlGetNtGlobalFlags() & FLG_SHOW_LDR_SNAPS) { DbgPrint("(LDR:%s:%d) ",__FILE__,__LINE__); DbgPrint(__VA_ARGS__); }
#endif /* __GNUC__ */
#else
#define TRACE_LDR(args...) do { DbgPrint("(LDR:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0)
@ -736,7 +737,7 @@ LdrLoadDll (IN PWSTR SearchPath OPTIONAL,
TRACE_LDR("LdrLoadDll, loading %wZ%s%S\n",
Name,
SearchPath ? " from " : "",
SearchPath ? L" from " : L"",
SearchPath ? SearchPath : L"");
if (Name == NULL)