@joebigelow / wix / commits / 84d8f809

Ensure log enabled as soon as handle open

Rob Mensching committed Jul 23, 2018 at 21:38 UTC 84d8f809e829f0696006f07997b97f3b6030fcc1
1 file changed +2 -2
src/dutil/logutil.cpp
+2 -2
@@ -135,6 +135,8 @@ extern "C" HRESULT DAPI LogOpen(
135 }
136 }
137
138 + LogUtil_fDisabled = FALSE;
139 +
140 if (fHeader)
141 {
142 LogHeader();
@@ -153,8 +155,6 @@ extern "C" HRESULT DAPI LogOpen(
155 ExitOnFailure(hr, "Failed to copy log path.");
156 }
157
156 - LogUtil_fDisabled = FALSE;
157 -
158 LExit:
159 if (fEnteredCriticalSection)
160 {