Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static BOOL ske_DrawTextEffect(....)
- {
- ...
- minX=max(0,minX+mcLeftStart-2);
- minY=max(0,minY+mcTopStart-2);
- maxX=min((int)width,maxX+mcRightEnd-1);
- maxY=min((int)height,maxX+mcBottomEnd-1);
- ...
- }
- Most likely this is what should be written here: maxY=min((int)height,maxY+mcBottomEnd-1);
- This suspicious code was found in Miranda IM project by PVS-Studio static code analyzer.
- Warning message is:
- V537 Consider reviewing the correctness of 'maxX' item's usage. clist_modern modern_skinengine.cpp 2898
- 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