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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 9 08:43:17 CDT 2015


Module: wine
Branch: master
Commit: cd1e969b2807a2e02aeccd8c9c56e52ec162a28c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cd1e969b2807a2e02aeccd8c9c56e52ec162a28c

Author: Michael Stefaniuc <mstefani at 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;
 }




More information about the wine-cvs mailing list