Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GpStatus WINGDIPAPI GdipGetRegionBoundsI(....)
- {
- ....
- status = GdipGetRegionBounds(region, graphics, &rectf);
- if (status == Ok){
- rect->X = gdip_round(rectf.X);
- rect->Y = gdip_round(rectf.X);
- rect->Width = gdip_round(rectf.Width);
- rect->Height = gdip_round(rectf.Height);
- }
- return status;
- }
- This suspicious code was found in ReactOS project by PVS-Studio static code analyzer.
- Warning message is:
- V656 Variables 'rect->X', 'rect->Y' are initialized through the call to the same function. It's probably an error or un-optimized code. Consider inspecting the 'gdip_round(rectf.X)' expression. Check lines: 718, 719. region.c 719
- 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