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

Michael Stefaniuc mstefani at redhat.de
Mon Mar 9 04:29:13 CDT 2015


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



More information about the wine-patches mailing list