PVS-StudioWarnings

PVS-Studio warning V606 for RunAsAdmin

Nov 20th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. bool AsyncW3Client::WaitCompleteRequest(unsigned long ntime)
  2. {
  3.   if (!_hCompleteRequestEvent ||
  4.       _hCompleteRequestEvent==INVALID_HANDLE_VALUE)
  5.     false;
  6.  
  7.   ....
  8. }
  9.  
  10. Most likely this is what should be written here: "return false;".
  11.  
  12. This suspicious code was found in RunAsAdmin project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V606 Ownerless token 'false'. w3c.cpp 1806
  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