diff options
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/conutil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/conutil.cpp b/src/libs/dutil/WixToolset.DUtil/conutil.cpp index 33e1b59a..7ca17439 100644 --- a/src/libs/dutil/WixToolset.DUtil/conutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/conutil.cpp | |||
@@ -353,7 +353,7 @@ extern "C" HRESULT DAPI ConsoleReadW( | |||
353 | ConExitOnLastError(hr, "failed to read string from console"); | 353 | ConExitOnLastError(hr, "failed to read string from console"); |
354 | 354 | ||
355 | cchTotalRead += cchRead; | 355 | cchTotalRead += cchRead; |
356 | if (1 < cchTotalRead && '\r' == psz[cchTotalRead - 2] || '\n' == psz[cchTotalRead - 1]) | 356 | if (1 < cchTotalRead && '\r' == psz[cchTotalRead - 2] && '\n' == psz[cchTotalRead - 1]) |
357 | { | 357 | { |
358 | psz[cchTotalRead - 2] = '\0'; // chop off the \r\n | 358 | psz[cchTotalRead - 2] = '\0'; // chop off the \r\n |
359 | break; | 359 | break; |