This project is read-only.
1
Vote

atlperf.inl generates PreFast static analyzer warnings: C6284 objects passed, when string is required.

description

At several locations in atlper.inl an object is passed while a string is required.
 
For example:
 
strMutexName.Format(_T("Global\ATLPERF_%s_LOCK"), strAppName); (line 1873)
 
This should be:
 
strMutexName.Format(_T("Global\ATLPERF_%s_LOCK"), strAppName.GetString());

comments