Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CHEATSEXPORT
- {
- ...
- u8 *gametitle;
- ...
- }
- INT_PTR CALLBACK CheatsExportProc(HWND dialog, UINT msg,
- WPARAM wparam, LPARAM lparam)
- {
- ...
- if ((char*)cheatsExport->gametitle != "")
- ...
- }
- This suspicious code was found in DeSmuME project by PVS-Studio static code analyzer.
- Warning message is:
- V547 Expression '(char *) cheatsExport->gametitle != ""' is always true. To compare strings you should use strcmp() function. DeSmuME_VS2005 cheatswin.cpp 1382
- 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