aboutsummaryrefslogtreecommitdiff
path: root/src/wcautil/wcalog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wcautil/wcalog.cpp')
-rw-r--r--src/wcautil/wcalog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wcautil/wcalog.cpp b/src/wcautil/wcalog.cpp
index faa7f8fd..cc7d1438 100644
--- a/src/wcautil/wcalog.cpp
+++ b/src/wcautil/wcalog.cpp
@@ -54,10 +54,10 @@ BOOL WIXAPI IsVerboseLogging()
54 // if the property wasn't set, check the MsiLogging property (MSI 4.0+) 54 // if the property wasn't set, check the MsiLogging property (MSI 4.0+)
55 HRESULT hr = WcaGetProperty(L"MsiLogging", &pwzMsiLogging); 55 HRESULT hr = WcaGetProperty(L"MsiLogging", &pwzMsiLogging);
56 ExitOnFailure(hr, "failed to get MsiLogging property"); 56 ExitOnFailure(hr, "failed to get MsiLogging property");
57 int cchMsiLogging = lstrlenW(pwzMsiLogging); 57
58 if (0 < cchMsiLogging) 58 if (pwzMsiLogging)
59 { 59 {
60 for (int i = 0; i < cchMsiLogging; i++) 60 for (int i = 0; pwzMsiLogging[i]; i++)
61 { 61 {
62 if (L'v' == pwzMsiLogging[i] || L'V' == pwzMsiLogging[i]) 62 if (L'v' == pwzMsiLogging[i] || L'V' == pwzMsiLogging[i])
63 { 63 {