André Hentschel : gameux: Return function result on error (PVS-Studio).
Module: wine Branch: master Commit: 8f00116b6cb2fa283ca0d7b26b267e3a78a70c85 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f00116b6cb2fa283ca0d7b26b... Author: André Hentschel <nerv(a)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);
participants (1)
-
Alexandre Julliard