diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2022-08-19 14:08:23 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2022-08-19 17:02:27 -0500 |
| commit | b72f58abdf6dd5d0020f174358027158cb52cb72 (patch) | |
| tree | 3070c1f1fa8a74125a2933f23a1be3c514ed1de7 /src/libs | |
| parent | bbc36178172e4198351f2f84a91faf56c65e1475 (diff) | |
| download | wix-b72f58abdf6dd5d0020f174358027158cb52cb72.tar.gz wix-b72f58abdf6dd5d0020f174358027158cb52cb72.tar.bz2 wix-b72f58abdf6dd5d0020f174358027158cb52cb72.zip | |
Use a dedicated pipe for redirecting logging from the elevated process.
Fixes 6869
Diffstat (limited to 'src/libs')
| -rw-r--r-- | src/libs/dutil/WixToolset.DUtil/logutil.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/logutil.cpp b/src/libs/dutil/WixToolset.DUtil/logutil.cpp index 3a130b4e..1453d1d2 100644 --- a/src/libs/dutil/WixToolset.DUtil/logutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/logutil.cpp | |||
| @@ -222,8 +222,12 @@ void DAPI LogRedirect( | |||
| 222 | __in_opt LPVOID pvContext | 222 | __in_opt LPVOID pvContext |
| 223 | ) | 223 | ) |
| 224 | { | 224 | { |
| 225 | ::EnterCriticalSection(&LogUtil_csLog); | ||
| 226 | |||
| 225 | s_vpfLogStringWorkRaw = vpfLogStringWorkRaw; | 227 | s_vpfLogStringWorkRaw = vpfLogStringWorkRaw; |
| 226 | s_vpvLogStringWorkRawContext = pvContext; | 228 | s_vpvLogStringWorkRawContext = pvContext; |
| 229 | |||
| 230 | ::LeaveCriticalSection(&LogUtil_csLog); | ||
| 227 | } | 231 | } |
| 228 | 232 | ||
| 229 | 233 | ||
