gameux: Avoid comparison of a BOOL return with TRUE (PVS-Studio).
This commit is contained in:
parent
91e59d99f9
commit
cd1e969b28
|
@ -1127,7 +1127,7 @@ static HRESULT STDMETHODCALLTYPE GameStatisticsMgrImpl_RemoveGameStatistics(
|
|||
hr = GAMEUX_buildStatisticsFilePath(lpApplicationId, sStatsFile);
|
||||
|
||||
if(SUCCEEDED(hr))
|
||||
hr = (DeleteFileW(sStatsFile)==TRUE ? S_OK : HRESULT_FROM_WIN32(GetLastError()));
|
||||
hr = DeleteFileW(sStatsFile) ? S_OK : HRESULT_FROM_WIN32(GetLastError());
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue