WaE: suggest parentheses around '&&' within '||'
This commit is contained in:
parent
72527fa9b8
commit
92b3308ecc
1 changed files with 2 additions and 2 deletions
|
@ -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++ = '\\';
|
||||
|
|
Loading…
Reference in a new issue