PVS-StudioWarnings

PVS-Studio warning V537 for ReactOS

Nov 10th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. BOOL APIENTRY
  2. GreStretchBltMask(....)
  3. {
  4.   ...
  5.   MaskPoint.x += DCMask->ptlDCOrig.x;
  6.   MaskPoint.y += DCMask->ptlDCOrig.x;
  7.   ...
  8. }
  9.  
  10. Most likely this is what should be written here: MaskPoint.y += DCMask->ptlDCOrig.y;
  11.  
  12. This suspicious code was found in ReactOS project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V537 Consider reviewing the correctness of 'x' item's usage. win32k bitblt.c 670
  15.  
  16. 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