Module: wine Branch: master Commit: cd1e969b2807a2e02aeccd8c9c56e52ec162a28c URL: http://source.winehq.org/git/wine.git/?a=commit;h=cd1e969b2807a2e02aeccd8c9c...
Author: Michael Stefaniuc mstefani@redhat.de Date: Mon Mar 9 10:29:13 2015 +0100
gameux: Avoid comparison of a BOOL return with TRUE (PVS-Studio).
---
dlls/gameux/gamestatistics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c index 7c95065..ff57b77 100644 --- a/dlls/gameux/gamestatistics.c +++ b/dlls/gameux/gamestatistics.c @@ -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; }