Fix use of bitwise '&' with boolean operands in palrt (#3349) accepted/tizen/7.0/unified/20230614.162019 accepted/tizen/unified/20230615.060056 accepted/tizen/unified/dev/20230726.115408
authorHyungju Lee <leee.lee@samsung.com>
Mon, 5 Sep 2022 17:07:35 +0000 (02:07 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Wed, 14 Jun 2023 01:40:53 +0000 (10:40 +0900)
src/shared/palrt/bstr.cpp

index 2f5ccd9cd48075a920c257adef049492c1f28fc3..93c1da774306397fd9ad8fb3bb3abdea7a0f400e 100644 (file)
@@ -47,7 +47,7 @@ inline HRESULT CbSysStringSize(ULONG cchSize, BOOL isByteLen, ULONG *result)
     else
     {
         ULONG temp = 0; // should not use in-place addition in ULongAdd
-        if (SUCCEEDED(ULongMult(cchSize, sizeof(WCHAR), &temp)) &
+        if (SUCCEEDED(ULongMult(cchSize, sizeof(WCHAR), &temp)) &&
             SUCCEEDED(ULongAdd(temp, constant, result)))
         {
             *result = *result & ~WIN32_ALLOC_ALIGN;