Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void CreateMiniDump(DWORD pid)
- {
- ....
- hFile = CreateFile(
- _T("C:\\netxmsd.mdmp"), GENERIC_WRITE, 0, NULL,
- CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
- ....
- }
- This suspicious code was found in NetXMS project by PVS-Studio static code analyzer.
- Warning message is:
- V631 Consider inspecting the 'CreateFileW' function call. Defining an absolute path to the file or directory is considered a poor style. netxmsd.cpp 126
- 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
Advertisement