Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SIZE CPPHtmlDrawer::DrawHtmlString (
- CPPString & sHtml, LPCRECT lpRect)
- {
- ....
- nIdRes = 0;
- nIdDll = 0;
- while (nIndex < sProperties.GetLength())
- {
- ....
- if (sParameter == _T("idres"))
- nIdRes = GetLengthUnit(sValue, nIdRes);
- else if (sParameter == _T("iddll"))
- nIdRes = GetLengthUnit(sValue, nIdDll);
- ....
- }
- if (nIdRes || nIdDll)
- ....
- }
- Most likely this is what should be written here: nIdDll = GetLengthUnit(sValue, nIdDll);
- This suspicious code was found in NetDefender project by PVS-Studio static code analyzer.
- Warning message is:
- V560 A part of conditional expression is always false: nIdDll. pphtmldrawer.cpp 2723
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement