WaE: suggest parentheses around '&&' within '||'

This commit is contained in:
David Tardon 2012-03-07 12:30:19 +01:00
parent 72527fa9b8
commit 92b3308ecc

View file

@ -314,7 +314,7 @@ DWORD IsValidFilePath(rtl_uString *path, LPCTSTR *lppError, DWORD dwFlags, rtl_u
/* If we now reached the end of the path, everything is O.K. */
if ( fValid && (!lpComponent || lpComponent && !*++lpComponent ) )
if ( fValid && (!lpComponent || !*++lpComponent ) )
{
lpComponent = NULL;
dwPathType |= PATHTYPE_IS_VOLUME;
@ -446,7 +446,7 @@ static LPTSTR PathAddBackslash(LPTSTR lpPath, sal_Int32 nBufLen)
{
int nLen = _tcslen(lpPath);
if ( !nLen || lpPath[nLen-1] != '\\' && lpPath[nLen-1] != '/' && nLen < nBufLen - 1 )
if ( !nLen || ( lpPath[nLen-1] != '\\' && lpPath[nLen-1] != '/' && nLen < nBufLen - 1 ) )
{
lpEndPath = lpPath + nLen;
*lpEndPath++ = '\\';