=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: gameux: Return function result on error (PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 20 08:43:19 CDT 2015


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Mar 19 22:11:38 2015 +0100

gameux: Return function result on error (PVS-Studio).

---

 dlls/gameux/gamestatistics.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c
index ff57b77..e6e33bb 100644
--- a/dlls/gameux/gamestatistics.c
+++ b/dlls/gameux/gamestatistics.c
@@ -627,6 +627,7 @@ static HRESULT GAMEUX_loadGameStatistics(struct GAMEUX_STATS *pStats,
     TRACE("(%p, %s, %d, %p)\n", pStats, debugstr_w(sGameId), openType, pOpenResult);
 
     hr = GAMEUX_buildStatisticsFilePath(sGameId, pStats->sStatsFile);
+    if (FAILED(hr)) return hr;
 
     hr = GAMEUX_loadStatisticsFromFile(pStats);
     TRACE("ldstats finished, res: %#x\n", hr);




More information about the wine-cvs mailing list