PREfast Warning 225 (Windows CE 5.0)
225 - Implicit cast between semantically different integer types.
Additional Information: Assigning 1 or TRUE to HRESULT.
Recommended Fix: Consider using S_FALSE instead.Note For this warning, the SCODE type is equivalent to HRESULT.
This warning indicates that an HRESULT is being assigned or initialized with a value of an explicit, non-HRESULT 1. Accidental confusion of Boolean and HRESULT types often cause this warning.
To indicate success, the symbolic constant S_OK should be used.
To indicate failure, some E_constant should be used.
Example
Defective Source
HRESULT hr = TRUE;
return hr;
Corrected Source
HRESULT hr = S_OK;
return hr;
Send Feedback on this topic to the authors