-Werror,-Wlogical-op-parentheses (clang-cl)

Change-Id: Ia505271b395588647a2e0b3db449000d110cb395
Reviewed-on: https://gerrit.libreoffice.org/67139
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2019-01-30 14:30:10 +01:00
parent d0265c128c
commit 9d79fb32b7

View File

@@ -89,12 +89,12 @@ void extendLoaderEnvironment(WCHAR * binPath, WCHAR * iniDirectory) {
*nameEnd++ = *p;
}
if (!(nameEnd - name >= 4 && nameEnd[-4] == L'.' &&
((nameEnd[-3] == L'E' || nameEnd[-3] == L'e') &&
(nameEnd[-2] == L'X' || nameEnd[-2] == L'x') &&
(nameEnd[-1] == L'E' || nameEnd[-1] == L'e') ||
(nameEnd[-3] == L'C' || nameEnd[-3] == L'c') &&
(nameEnd[-2] == L'O' || nameEnd[-2] == L'o') &&
(nameEnd[-1] == L'M' || nameEnd[-1] == L'm'))))
(((nameEnd[-3] == L'E' || nameEnd[-3] == L'e') &&
(nameEnd[-2] == L'X' || nameEnd[-2] == L'x') &&
(nameEnd[-1] == L'E' || nameEnd[-1] == L'e')) ||
((nameEnd[-3] == L'C' || nameEnd[-3] == L'c') &&
(nameEnd[-2] == L'O' || nameEnd[-2] == L'o') &&
(nameEnd[-1] == L'M' || nameEnd[-1] == L'm')))))
{
*nameEnd = L'.';
nameEnd += 4;