Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Likely incorrect HRESULT usage detected.
Remarks
This warning is a high-confidence indication that an HRESULT-returning function returns FALSE
.
Code analysis name: HRESULT_LIKELY_INCORRECT_USAGE
Example
The following sample code causes warning C33020:
#include <Windows.h>
HRESULT foo()
{
// ......
return FALSE; // C33020
}
These warnings are corrected by using the proper HRESULT value:
#include <Windows.h>
HRESULT foo()
{
// ......
return E_FAIL; // OK
}