gameux: Avoid comparison of a BOOL return with TRUE (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2015-03-09 10:29:13 +01:00 committed by Alexandre Julliard
parent 91e59d99f9
commit cd1e969b28
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}