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