aboutsummaryrefslogtreecommitdiff
path: root/src/stub
diff options
context:
space:
mode:
Diffstat (limited to 'src/stub')
-rw-r--r--src/stub/precomp.h3
-rw-r--r--src/stub/stub.cpp14
2 files changed, 14 insertions, 3 deletions
diff --git a/src/stub/precomp.h b/src/stub/precomp.h
index ad0988b5..bb7ded9c 100644
--- a/src/stub/precomp.h
+++ b/src/stub/precomp.h
@@ -5,8 +5,7 @@
5#include <windows.h> 5#include <windows.h>
6 6
7#include <dutilsources.h> 7#include <dutilsources.h>
8 8#include <burnsources.h>
9#define DUTIL_SOURCE_DEFAULT DUTIL_SOURCE_EXTERNAL
10 9
11#include <dutil.h> 10#include <dutil.h>
12#include <apputil.h> 11#include <apputil.h>
diff --git a/src/stub/stub.cpp b/src/stub/stub.cpp
index d3ace1f3..0cb202e0 100644
--- a/src/stub/stub.cpp
+++ b/src/stub/stub.cpp
@@ -87,7 +87,19 @@ static void CALLBACK BurnTraceError(
87 __in va_list args 87 __in va_list args
88 ) 88 )
89{ 89{
90 if (DUTIL_SOURCE_DEFAULT == source) 90 BOOL fLog = FALSE;
91
92 switch (source)
93 {
94 case DUTIL_SOURCE_DEFAULT:
95 fLog = TRUE;
96 break;
97 default:
98 fLog = REPORT_VERBOSE < LogGetLevel();
99 break;
100 }
101
102 if (fLog)
91 { 103 {
92 LogErrorStringArgs(hrError, szFormat, args); 104 LogErrorStringArgs(hrError, szFormat, args);
93 } 105 }